Blender V4.3
blender::gpu::shader::SpecializationConstant Struct Reference

#include <GPU_common_types.hh>

Classes

struct  Value

Public Member Functions

 SpecializationConstant ()
 SpecializationConstant (const char *name, uint32_t value)
 SpecializationConstant (const char *name, int value)
 SpecializationConstant (const char *name, float value)
 SpecializationConstant (const char *name, bool value)
bool operator== (const SpecializationConstant &b) const

Public Attributes

Type type
StringRefNull name
Value value

Detailed Description

Definition at line 176 of file GPU_common_types.hh.

Constructor & Destructor Documentation

◆ SpecializationConstant() [1/5]

blender::gpu::shader::SpecializationConstant::SpecializationConstant ( )
inline

Definition at line 194 of file GPU_common_types.hh.

Referenced by operator==().

◆ SpecializationConstant() [2/5]

blender::gpu::shader::SpecializationConstant::SpecializationConstant ( const char * name,
uint32_t value )
inline

Definition at line 196 of file GPU_common_types.hh.

References name, type, blender::gpu::shader::UINT, and value.

◆ SpecializationConstant() [3/5]

blender::gpu::shader::SpecializationConstant::SpecializationConstant ( const char * name,
int value )
inline

Definition at line 201 of file GPU_common_types.hh.

References blender::gpu::shader::INT, name, type, and value.

◆ SpecializationConstant() [4/5]

blender::gpu::shader::SpecializationConstant::SpecializationConstant ( const char * name,
float value )
inline

Definition at line 206 of file GPU_common_types.hh.

References blender::gpu::shader::FLOAT, name, type, and value.

◆ SpecializationConstant() [5/5]

blender::gpu::shader::SpecializationConstant::SpecializationConstant ( const char * name,
bool value )
inline

Definition at line 211 of file GPU_common_types.hh.

References blender::gpu::shader::BOOL, name, type, and value.

Member Function Documentation

◆ operator==()

bool blender::gpu::shader::SpecializationConstant::operator== ( const SpecializationConstant & b) const
inline

Definition at line 216 of file GPU_common_types.hh.

References b, and SpecializationConstant().

Member Data Documentation

◆ name

◆ type

◆ value


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