Blender V5.0
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 29 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 40 of file gpu_shader_interface.hh.

Referenced by blender::gpu::GLShaderInterface::GLShaderInterface(), blender::gpu::VKShaderInterface::init(), blender::gpu::init_constant(), blender::gpu::MTLShaderInterface::map_builtins(), and blender::gpu::MTLShaderInterface::prepare_common_shader_inputs().

◆ name_hash

uint32_t blender::gpu::ShaderInput::name_hash

◆ name_offset

uint32_t blender::gpu::ShaderInput::name_offset

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