|
Blender V4.3
|
#include <gpu_shader_interface.hh>
Public Attributes | |
| uint32_t | name_offset |
| uint32_t | name_hash |
| int32_t | location |
| int32_t | binding |
Definition at line 27 of file gpu_shader_interface.hh.
| int32_t blender::gpu::ShaderInput::binding |
Defined at interface creation or in shader. Only for Samplers, UBOs and Vertex Attributes.
Definition at line 40 of file gpu_shader_interface.hh.
Referenced by blender::gpu::GLShaderInterface::GLShaderInterface(), blender::gpu::GLShaderInterface::GLShaderInterface(), GPU_shader_get_ubo_binding(), blender::gpu::VKShaderInterface::init(), blender::gpu::MTLShaderInterface::map_builtins(), and blender::gpu::MTLShaderInterface::prepare_common_shader_inputs().
| int32_t blender::gpu::ShaderInput::location |
Location is openGl legacy and its legacy usages should be phased out in Blender 3.7.
Vulkan backend use location to encode the descriptor set binding. This binding is different than the binding stored in the binding attribute. In Vulkan the binding inside a descriptor set must be unique. In future the location will also be used to select the right descriptor set.
Definition at line 38 of file gpu_shader_interface.hh.
Referenced by blender::gpu::GLShaderInterface::GLShaderInterface(), blender::gpu::GLShaderInterface::GLShaderInterface(), GPU_shader_get_attribute(), GPU_shader_get_constant(), GPU_shader_get_ssbo_binding(), GPU_shader_get_uniform(), GPU_shader_get_uniform_block(), blender::gpu::VKShaderInterface::init(), blender::gpu::init_constant(), blender::gpu::MTLShaderInterface::map_builtins(), blender::gpu::MTLShaderInterface::prepare_common_shader_inputs(), and blender::gpu::MTLShader::prepare_ssbo_vertex_fetch_metadata().
| uint32_t blender::gpu::ShaderInput::name_hash |
Definition at line 29 of file gpu_shader_interface.hh.
Referenced by blender::gpu::MTLShaderInterface::prepare_common_shader_inputs(), and blender::gpu::sort_input_list().
| uint32_t blender::gpu::ShaderInput::name_offset |
Definition at line 28 of file gpu_shader_interface.hh.
Referenced by blender::gpu::MTLShaderInterface::map_builtins(), and blender::gpu::MTLShaderInterface::prepare_common_shader_inputs().