|
Blender V5.3
|
Go to the source code of this file.
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
| namespace | blender::gpu |
Macros | |
| #define | GPU_SHADER_BUILTIN_LEN (GPU_SHADER_3D_IMAGE_COLOR_SCENE_LINEAR_TO_REC709_SRGB + 1) |
| #define | GPU_SHADER_CFG_LEN (GPU_SHADER_CFG_CLIPPED + 1) |
Functions | |
| gpu::Shader * | blender::GPU_shader_get_builtin_shader_with_config (GPUBuiltinShader shader, GPUShaderConfig sh_cfg) |
| gpu::Shader * | blender::GPU_shader_get_builtin_shader (GPUBuiltinShader shader) |
| void | blender::GPU_shader_builtin_warm_up () |
| void | blender::GPU_shader_free_builtin_shaders () |
Set of shaders used for interface drawing.
2D shaders are not expected to work in 3D. 3D shaders can work with 2D geometry and matrices.
INST suffix means instance, which means the shader is build to leverage instancing capabilities to reduce the number of draw-calls.
For full list of parameters, search for the associated ShaderCreateInfo. Example: GPU_SHADER_ICON is defined by GPU_SHADER_CREATE_INFO(gpu_shader_icon) Some parameters are builtins and are set automatically (ex: ModelViewProjectionMatrix).
Definition in file GPU_shader_builtin.hh.
| #define GPU_SHADER_BUILTIN_LEN (GPU_SHADER_3D_IMAGE_COLOR_SCENE_LINEAR_TO_REC709_SRGB + 1) |
Definition at line 197 of file GPU_shader_builtin.hh.
Referenced by blender::GPU_shader_free_builtin_shaders(), blender::GPU_shader_get_builtin_shader_with_config(), and blender::gpu_shader_warm_builtin_shader_async().
| #define GPU_SHADER_CFG_LEN (GPU_SHADER_CFG_CLIPPED + 1) |
Definition at line 204 of file GPU_shader_builtin.hh.
Referenced by blender::GPU_shader_free_builtin_shaders().