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

#include <GPU_common_types.hh>

Classes

struct  Value

Public Member Functions

 SpecializationConstant ()=default
 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 173 of file GPU_common_types.hh.

Constructor & Destructor Documentation

◆ SpecializationConstant() [1/5]

blender::gpu::shader::SpecializationConstant::SpecializationConstant ( )
default

Referenced by operator==().

◆ SpecializationConstant() [2/5]

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

Definition at line 198 of file GPU_common_types.hh.

References name, type, and value.

◆ SpecializationConstant() [3/5]

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

Definition at line 203 of file GPU_common_types.hh.

References name, type, and value.

◆ SpecializationConstant() [4/5]

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

Definition at line 208 of file GPU_common_types.hh.

References name, type, and value.

◆ SpecializationConstant() [5/5]

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

Definition at line 213 of file GPU_common_types.hh.

References name, type, and value.

Member Function Documentation

◆ operator==()

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

Definition at line 218 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: