Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_shader.h
| Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
| bool GPU_shader_create_info_check_error(const GPUShaderCreateInfo *_info, char r_error[128]); | bool GPU_shader_create_info_check_error(const GPUShaderCreateInfo *_info, char r_error[128]); | ||||
| struct GPU_ShaderCreateFromArray_Params { | struct GPU_ShaderCreateFromArray_Params { | ||||
| const char **vert, **geom, **frag, **defs; | const char **vert, **geom, **frag, **defs; | ||||
| }; | }; | ||||
| /** | /** | ||||
| * Use via #GPU_shader_create_from_arrays macro (avoids passing in param). | * Use via #GPU_shader_create_from_arrays macro (avoids passing in param). | ||||
| * | * | ||||
| * Similar to #DRW_shader_create_with_lib with the ability to include libs for each type of shader. | * Similar to #DRW_shader_create_with_lib with the ability to include libraries for each type of | ||||
| * shader. | |||||
| * | * | ||||
| * It has the advantage that each item can be conditionally included | * It has the advantage that each item can be conditionally included | ||||
| * without having to build the string inline, then free it. | * without having to build the string inline, then free it. | ||||
| * | * | ||||
| * \param params: NULL terminated arrays of strings. | * \param params: NULL terminated arrays of strings. | ||||
| * | * | ||||
| * Example: | * Example: | ||||
| * \code{.c} | * \code{.c} | ||||
| ▲ Show 20 Lines • Show All 329 Lines • Show Last 20 Lines | |||||