Blender V4.3
blender::gpu::Shader::Constants Struct Reference

#include <gpu_shader_private.hh>

Public Types

using Value = shader::SpecializationConstant::Value
 

Public Attributes

Vector< gpu::shader::Typetypes
 
Vector< Valuevalues
 
bool is_dirty
 

Detailed Description

Specialization constants as a Struct-of-Arrays. Allow simpler comparison and reset. The backend is free to implement their support as they see fit.

Definition at line 53 of file gpu_shader_private.hh.

Member Typedef Documentation

◆ Value

Member Data Documentation

◆ is_dirty

bool blender::gpu::Shader::Constants::is_dirty

OpenGL needs to know if a different program needs to be attached when constants are changed. Vulkan and Metal uses pipelines and don't have this issue. Attribute can be removed after the OpenGL backend has been phased out.

Definition at line 65 of file gpu_shader_private.hh.

Referenced by blender::gpu::MTLParallelShaderCompiler::precompile_specializations().

◆ types

◆ values


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