Blender V4.5
blender::draw::command::PushConstant Struct Reference

#include <draw_command.hh>

Classes

union  [union].__unnamed0__

Public Types

enum class  Type : uint8_t { IntValue = 0 , FloatValue , IntReference , FloatReference }

Public Member Functions

 PushConstant ()=default
 PushConstant (int loc, const float &val)
 PushConstant (int loc, const float2 &val)
 PushConstant (int loc, const float3 &val)
 PushConstant (int loc, const float4 &val)
 PushConstant (int loc, const int &val)
 PushConstant (int loc, const int2 &val)
 PushConstant (int loc, const int3 &val)
 PushConstant (int loc, const int4 &val)
 PushConstant (int loc, const float *val, int arr)
 PushConstant (int loc, const float2 *val, int arr)
 PushConstant (int loc, const float3 *val, int arr)
 PushConstant (int loc, const float4 *val, int arr)
 PushConstant (int loc, const float4x4 *val)
 PushConstant (int loc, const int *val, int arr)
 PushConstant (int loc, const int2 *val, int arr)
 PushConstant (int loc, const int3 *val, int arr)
 PushConstant (int loc, const int4 *val, int arr)
Commands Execution
void execute (RecordingState &state) const
Commands Serialization for debugging
std::string serialize () const

Public Attributes

int location
uint8_t array_len
uint8_t comp_len
enum blender::draw::command::PushConstant::Type type
union  

Detailed Description

Definition at line 234 of file draw_command.hh.

Member Enumeration Documentation

◆ Type

Enumerator
IntValue 
FloatValue 
IntReference 
FloatReference 

Definition at line 238 of file draw_command.hh.

Constructor & Destructor Documentation

◆ PushConstant() [1/18]

blender::draw::command::PushConstant::PushConstant ( )
default

◆ PushConstant() [2/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const float & val )
inline

Definition at line 272 of file draw_command.hh.

References array_len, comp_len, location, and type.

◆ PushConstant() [3/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const float2 & val )
inline

Definition at line 274 of file draw_command.hh.

References array_len, comp_len, location, and type.

◆ PushConstant() [4/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const float3 & val )
inline

Definition at line 276 of file draw_command.hh.

References array_len, comp_len, location, and type.

◆ PushConstant() [5/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const float4 & val )
inline

Definition at line 278 of file draw_command.hh.

References array_len, comp_len, location, and type.

◆ PushConstant() [6/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const int & val )
inline

Definition at line 281 of file draw_command.hh.

References array_len, comp_len, location, and type.

◆ PushConstant() [7/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const int2 & val )
inline

Definition at line 283 of file draw_command.hh.

References array_len, comp_len, location, and type.

◆ PushConstant() [8/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const int3 & val )
inline

Definition at line 285 of file draw_command.hh.

References array_len, comp_len, location, and type.

◆ PushConstant() [9/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const int4 & val )
inline

Definition at line 287 of file draw_command.hh.

References array_len, comp_len, location, and type.

◆ PushConstant() [10/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const float * val,
int arr )
inline

Definition at line 290 of file draw_command.hh.

References array_len, comp_len, location, and type.

◆ PushConstant() [11/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const float2 * val,
int arr )
inline

Definition at line 292 of file draw_command.hh.

References array_len, comp_len, location, and type.

◆ PushConstant() [12/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const float3 * val,
int arr )
inline

Definition at line 294 of file draw_command.hh.

References array_len, comp_len, location, and type.

◆ PushConstant() [13/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const float4 * val,
int arr )
inline

Definition at line 296 of file draw_command.hh.

References array_len, comp_len, location, and type.

◆ PushConstant() [14/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const float4x4 * val )
inline

Definition at line 298 of file draw_command.hh.

References array_len, comp_len, location, and type.

◆ PushConstant() [15/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const int * val,
int arr )
inline

Definition at line 301 of file draw_command.hh.

References array_len, comp_len, location, and type.

◆ PushConstant() [16/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const int2 * val,
int arr )
inline

Definition at line 303 of file draw_command.hh.

References array_len, comp_len, location, and type.

◆ PushConstant() [17/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const int3 * val,
int arr )
inline

Definition at line 305 of file draw_command.hh.

References array_len, comp_len, location, and type.

◆ PushConstant() [18/18]

blender::draw::command::PushConstant::PushConstant ( int loc,
const int4 * val,
int arr )
inline

Definition at line 307 of file draw_command.hh.

References array_len, comp_len, location, and type.

Member Function Documentation

◆ execute()

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

◆ serialize()

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

Member Data Documentation

◆ @310157363202250271107262304101307045151041344370

◆ array_len

◆ comp_len

◆ location

◆ type


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