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

#include <draw_command.hh>

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::Shadershader
union { 
   int   int_value 
   uint   uint_value 
   float   float_value 
   bool   bool_value 
   const int *   int_ref 
   const uint *   uint_ref 
   const float *   float_ref 
   const bool *   bool_ref 
}; 
int location
enum blender::draw::command::SpecializeConstant::Type type

Detailed Description

Definition at line 313 of file draw_command.hh.

Member Enumeration Documentation

◆ Type

Enumerator
IntValue 
UintValue 
FloatValue 
BoolValue 
IntReference 
UintReference 
FloatReference 
BoolReference 

Definition at line 330 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 343 of file draw_command.hh.

References float_value, location, shader, and type.

◆ SpecializeConstant() [3/9]

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

Definition at line 345 of file draw_command.hh.

References int_value, location, shader, and type.

◆ SpecializeConstant() [4/9]

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

Definition at line 347 of file draw_command.hh.

References location, shader, type, and uint_value.

◆ SpecializeConstant() [5/9]

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

Definition at line 349 of file draw_command.hh.

References bool_value, location, shader, and type.

◆ SpecializeConstant() [6/9]

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

Definition at line 351 of file draw_command.hh.

References float_ref, location, shader, and type.

◆ SpecializeConstant() [7/9]

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

Definition at line 353 of file draw_command.hh.

References int_ref, location, shader, and type.

◆ SpecializeConstant() [8/9]

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

Definition at line 355 of file draw_command.hh.

References location, shader, type, and uint_ref.

◆ SpecializeConstant() [9/9]

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

Definition at line 357 of file draw_command.hh.

References bool_ref, location, shader, and type.

Member Function Documentation

◆ execute()

◆ serialize()

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

Member Data Documentation

◆ [union]

◆ bool_ref

const bool* blender::draw::command::SpecializeConstant::bool_ref

Definition at line 325 of file draw_command.hh.

Referenced by execute(), serialize(), and SpecializeConstant().

◆ bool_value

bool blender::draw::command::SpecializeConstant::bool_value

Definition at line 321 of file draw_command.hh.

Referenced by execute(), serialize(), and SpecializeConstant().

◆ float_ref

const float* blender::draw::command::SpecializeConstant::float_ref

Definition at line 324 of file draw_command.hh.

Referenced by execute(), serialize(), and SpecializeConstant().

◆ float_value

float blender::draw::command::SpecializeConstant::float_value

Definition at line 320 of file draw_command.hh.

Referenced by execute(), serialize(), and SpecializeConstant().

◆ int_ref

const int* blender::draw::command::SpecializeConstant::int_ref

Definition at line 322 of file draw_command.hh.

Referenced by execute(), serialize(), and SpecializeConstant().

◆ int_value

int blender::draw::command::SpecializeConstant::int_value

Definition at line 318 of file draw_command.hh.

Referenced by execute(), serialize(), and SpecializeConstant().

◆ location

◆ shader

◆ type

◆ uint_ref

const uint* blender::draw::command::SpecializeConstant::uint_ref

Definition at line 323 of file draw_command.hh.

Referenced by execute(), serialize(), and SpecializeConstant().

◆ uint_value

uint blender::draw::command::SpecializeConstant::uint_value

Definition at line 319 of file draw_command.hh.

Referenced by execute(), serialize(), and SpecializeConstant().


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