Blender V4.3
blender::gpu::ShaderInput Struct Reference

#include <gpu_shader_interface.hh>

Public Attributes

uint32_t name_offset
 
uint32_t name_hash
 
int32_t location
 
int32_t binding
 

Detailed Description

Definition at line 27 of file gpu_shader_interface.hh.

Member Data Documentation

◆ binding

◆ location

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().

◆ name_hash

uint32_t blender::gpu::ShaderInput::name_hash

◆ name_offset


The documentation for this struct was generated from the following file: