|
Blender V5.0
|
#include <GPU_common_types.hh>
Public Member Functions | |
| void | set_value (int index, uint32_t value) |
| void | set_value (int index, int value) |
| void | set_value (int index, float value) |
| void | set_value (int index, bool value) |
| bool | is_empty () const |
Public Attributes | |
| Vector< gpu::shader::Type, 8 > | types |
| Vector< SpecializationConstant::Value, 8 > | values |
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 228 of file GPU_common_types.hh.
|
inline |
Definition at line 258 of file GPU_common_types.hh.
References types.
Referenced by blender::draw::command::Draw::execute(), and blender::draw::command::ShaderBind::execute().
|
inline |
Definition at line 252 of file GPU_common_types.hh.
References BLI_assert_msg, blender::gpu::shader::bool_t, types, and values.
|
inline |
Definition at line 246 of file GPU_common_types.hh.
References BLI_assert_msg, blender::gpu::shader::float_t, types, and values.
|
inline |
Definition at line 240 of file GPU_common_types.hh.
References BLI_assert_msg, blender::gpu::shader::int_t, types, and values.
|
inline |
Definition at line 234 of file GPU_common_types.hh.
References BLI_assert_msg, types, blender::gpu::shader::uint_t, and values.
Referenced by blender::eevee::ShaderModule::request_specializations(), and blender::gpu::tests::ShaderSpecializationConst::ShaderSpecializationConst().
| Vector<gpu::shader::Type, 8> blender::gpu::shader::SpecializationConstants::types |
Definition at line 229 of file GPU_common_types.hh.
Referenced by blender::gpu::GLShader::constants_declare(), is_empty(), blender::gpu::populate_specialization_constant_values(), set_value(), set_value(), set_value(), set_value(), and blender::gpu::Shader::specialization_constants_init().
| Vector<SpecializationConstant::Value, 8> blender::gpu::shader::SpecializationConstants::values |
Definition at line 232 of file GPU_common_types.hh.
Referenced by blender::gpu::MTLShader::bake_current_pipeline_state(), blender::gpu::GLShader::constants_declare(), blender::gpu::VKShader::ensure_and_get_compute_pipeline(), blender::gpu::VKShader::ensure_and_get_graphics_pipeline(), set_value(), set_value(), set_value(), set_value(), blender::gpu::Shader::specialization_constants_init(), and blender::gpu::MTLShaderCompiler::specialize_shader().