Blender V5.0
blender::gpu::shader::SpecializationConstants Struct Reference

#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

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 228 of file GPU_common_types.hh.

Member Function Documentation

◆ is_empty()

bool blender::gpu::shader::SpecializationConstants::is_empty ( ) const
inline

◆ set_value() [1/4]

void blender::gpu::shader::SpecializationConstants::set_value ( int index,
bool value )
inline

Definition at line 252 of file GPU_common_types.hh.

References BLI_assert_msg, blender::gpu::shader::bool_t, types, and values.

◆ set_value() [2/4]

void blender::gpu::shader::SpecializationConstants::set_value ( int index,
float value )
inline

Definition at line 246 of file GPU_common_types.hh.

References BLI_assert_msg, blender::gpu::shader::float_t, types, and values.

◆ set_value() [3/4]

void blender::gpu::shader::SpecializationConstants::set_value ( int index,
int value )
inline

Definition at line 240 of file GPU_common_types.hh.

References BLI_assert_msg, blender::gpu::shader::int_t, types, and values.

◆ set_value() [4/4]

void blender::gpu::shader::SpecializationConstants::set_value ( int index,
uint32_t value )
inline

Member Data Documentation

◆ types

◆ values


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