|
Untitled
|
Initialization for ShaderPrograms. More...
#include "core/engine_types.h"Go to the source code of this file.
Functions | |
| char * | read_file (const char *filename) |
| Reads a file into raw bytes. | |
| GLuint | create_compute_shader (const char *filename) |
| Creates a compute shader. | |
| GLuint | compile_shader (GLenum type, const char *filename) |
| Compiles a non-compute shader. | |
| GLuint | create_shader_program (const char *vertex_path, const char *fragment_path) |
| Compiles and links vert and frag pairs. | |
| void | SHADERS_INIT () |
| Deletes and then recompiles and links all engine shaders. | |
Initialization for ShaderPrograms.
Definition in file shaders.h.
| char * read_file | ( | const char * | filename | ) |
Reads a file into raw bytes.
| filename | The file to read. |
Definition at line 10 of file shaders.c.
References read_file(), and size.
Referenced by compile_gbuffer_frag_shader(), compile_postprocess_shader(), compile_shader(), compile_uber_frag_shader(), create_compute_shader(), and read_file().
| GLuint create_compute_shader | ( | const char * | filename | ) |
Creates a compute shader.
| filename | The path to file. |
Definition at line 34 of file shaders.c.
References create_compute_shader(), and read_file().
Referenced by create_compute_shader(), init_audio_shader(), init_cull_clusers_compute_shader(), init_cull_draw_calls_compute_shader(), init_dof_shader(), and init_lightmap_bounce_compute_shader().
| GLuint compile_shader | ( | GLenum | type, |
| const char * | filename ) |
Compiles a non-compute shader.
| type | The type of shader to compile. |
| filename | The path to the shader. |
Definition at line 77 of file shaders.c.
References compile_shader(), and read_file().
Referenced by compile_shader(), create_gbuffer_program(), create_geometry_shader_program(), create_postprocess_program(), create_shader_program(), and create_ubershader_program().
| GLuint create_shader_program | ( | const char * | vertex_path, |
| const char * | fragment_path ) |
Compiles and links vert and frag pairs.
| vertex_path | The path to the vert shader. |
| fragment_path | The path to the frag shader. |
Definition at line 377 of file shaders.c.
References compile_shader(), and create_shader_program().
Referenced by create_shader_program(), init_bloom_shader(), init_brdf_shader(), init_depth_pre_pass_shader(), init_dof_shader(), init_lightmap_shader(), init_shadow_map_shader(), init_sky_shader(), init_ssao_shader(), init_text_shader(), init_ui_shader(), and init_wireframe_shader().
| void SHADERS_INIT | ( | ) |
Deletes and then recompiles and links all engine shaders.
Definition at line 1131 of file shaders.c.
References AUDIO_PROBE_BAKE_SHADER, BLOOM_BLUR_SHADER, BLOOM_DOWNSCALE_SHADER, BLOOM_SHADER, BLOOM_UPSCALE_SHADER, BOKEH_SHADER, BRDF_SHADER, COC_SHADER, CULL_CLUSTERS_SHADER, CULL_DRAW_CALLS_SHADER, CULL_POINT_LIGHT_SHADOWS_SHADER, DEPTH_PRE_PASS_SHADER, DIRECTIONAL_MAP_NORMALIZE_SHADER, DYNAMIC_SHADER, ELEMENTS_PREFIX_SHADER, FOCAL_DISTANCE_SHADER, GBUFFER_VERSIONS, INDIRECT_PREFIX_SHADER, init_audio_shader(), init_bloom_shader(), init_brdf_shader(), INIT_CLUSTER_AABBS_SHADER, init_cull_clusers_compute_shader(), init_cull_draw_calls_compute_shader(), init_depth_pre_pass_shader(), init_dof_shader(), init_dynamic_shader(), init_lightmap_bounce_compute_shader(), init_lightmap_shader(), init_postprocess_shader(), init_shadow_map_shader(), init_sky_shader(), init_ssao_shader(), init_SSR_shader(), init_text_shader(), init_ui_shader(), init_wireframe_shader(), LIGHTMAP_BOUNCE_SHADER, LIGHTMAP_DENOISE_SHADER, LIGHTMAP_DILATE_SHADER, LIGHTMAP_SHADER, POINT_LIGHT_SHADOW_SHADER, POSTPROCESS_SHADER, PP_SHADER_VERSIONS, PROBE_BAKE_SHADER, PROBE_UNPACK_SHADER, ShaderProgram::program, SHADERS_INIT(), SHADOW_MAP_SHADER, SKY_SHADER, SSAO_BLUR_SHADER, SSAO_SHADER, SSR_BLUR_SHADER, SSR_HISTORY_SHADER, SSR_SHADER, TEXT_SHADER, UBERSHADER_VERSIONS, UI_SHADER, and WIREFRAME_SHADER.
Referenced by init(), process_input(), and SHADERS_INIT().