Blender V5.3
blender::draw::command::SpecializeConstant Struct Reference

#include <draw_command.hh>

Classes

union  [union].__unnamed0__

Public Types

enum class  Type : uint8_t {
  IntValue = 0 , UintValue , FloatValue , BoolValue ,
  IntReference , UintReference , FloatReference , BoolReference
}

Public Member Functions

 SpecializeConstant ()=default
 SpecializeConstant (gpu::Shader *sh, int loc, const float &val)
 SpecializeConstant (gpu::Shader *sh, int loc, const int &val)
 SpecializeConstant (gpu::Shader *sh, int loc, const uint &val)
 SpecializeConstant (gpu::Shader *sh, int loc, const bool &val)
 SpecializeConstant (gpu::Shader *sh, int loc, const float *val)
 SpecializeConstant (gpu::Shader *sh, int loc, const int *val)
 SpecializeConstant (gpu::Shader *sh, int loc, const uint *val)
 SpecializeConstant (gpu::Shader *sh, int loc, const bool *val)
Commands Execution
void execute (RecordingState &state) const
Commands Serialization for debugging
std::string serialize () const

Public Attributes

gpu::Shader * shader
union  
int location
enum blender::draw::command::SpecializeConstant::Type type

Detailed Description

Definition at line 323 of file draw_command.hh.

Member Enumeration Documentation

◆ Type

Enumerator
IntValue 
UintValue 
FloatValue 
BoolValue 
IntReference 
UintReference 
FloatReference 
BoolReference 

Definition at line 340 of file draw_command.hh.

Constructor & Destructor Documentation

◆ SpecializeConstant() [1/9]

blender::draw::command::SpecializeConstant::SpecializeConstant ( )
default

◆ SpecializeConstant() [2/9]

blender::draw::command::SpecializeConstant::SpecializeConstant ( gpu::Shader * sh,
int loc,
const float & val )
inline

Definition at line 353 of file draw_command.hh.

References location, shader, and type.

◆ SpecializeConstant() [3/9]

blender::draw::command::SpecializeConstant::SpecializeConstant ( gpu::Shader * sh,
int loc,
const int & val )
inline

Definition at line 355 of file draw_command.hh.

References location, shader, and type.

◆ SpecializeConstant() [4/9]

blender::draw::command::SpecializeConstant::SpecializeConstant ( gpu::Shader * sh,
int loc,
const uint & val )
inline

Definition at line 357 of file draw_command.hh.

References location, shader, and type.

◆ SpecializeConstant() [5/9]

blender::draw::command::SpecializeConstant::SpecializeConstant ( gpu::Shader * sh,
int loc,
const bool & val )
inline

Definition at line 359 of file draw_command.hh.

References location, shader, and type.

◆ SpecializeConstant() [6/9]

blender::draw::command::SpecializeConstant::SpecializeConstant ( gpu::Shader * sh,
int loc,
const float * val )
inline

Definition at line 361 of file draw_command.hh.

References location, shader, and type.

◆ SpecializeConstant() [7/9]

blender::draw::command::SpecializeConstant::SpecializeConstant ( gpu::Shader * sh,
int loc,
const int * val )
inline

Definition at line 363 of file draw_command.hh.

References location, shader, and type.

◆ SpecializeConstant() [8/9]

blender::draw::command::SpecializeConstant::SpecializeConstant ( gpu::Shader * sh,
int loc,
const uint * val )
inline

Definition at line 365 of file draw_command.hh.

References location, shader, and type.

◆ SpecializeConstant() [9/9]

blender::draw::command::SpecializeConstant::SpecializeConstant ( gpu::Shader * sh,
int loc,
const bool * val )
inline

Definition at line 367 of file draw_command.hh.

References location, shader, and type.

Member Function Documentation

◆ execute()

void blender::draw::command::SpecializeConstant::execute ( command::RecordingState & state) const

◆ serialize()

std::string blender::draw::command::SpecializeConstant::serialize ( ) const

Member Data Documentation

◆ @050030076310340056212324176341037355022245072263

◆ location

◆ shader

◆ type


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