|
Blender V4.3
|
#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 (GPUShader *sh, int loc, const float &val) | |
| SpecializeConstant (GPUShader *sh, int loc, const int &val) | |
| SpecializeConstant (GPUShader *sh, int loc, const uint &val) | |
| SpecializeConstant (GPUShader *sh, int loc, const bool &val) | |
| SpecializeConstant (GPUShader *sh, int loc, const float *val) | |
| SpecializeConstant (GPUShader *sh, int loc, const int *val) | |
| SpecializeConstant (GPUShader *sh, int loc, const uint *val) | |
| SpecializeConstant (GPUShader *sh, int loc, const bool *val) | |
Commands Execution | |
| void | execute () const |
Commands Serialization for debugging | |
| std::string | serialize () const |
Public Attributes | ||
| GPUShader * | shader | |
| 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 | |
Definition at line 300 of file draw_command.hh.
|
strong |
| Enumerator | |
|---|---|
| IntValue | |
| UintValue | |
| FloatValue | |
| BoolValue | |
| IntReference | |
| UintReference | |
| FloatReference | |
| BoolReference | |
Definition at line 317 of file draw_command.hh.
|
default |
|
inline |
Definition at line 330 of file draw_command.hh.
|
inline |
Definition at line 332 of file draw_command.hh.
|
inline |
Definition at line 334 of file draw_command.hh.
|
inline |
Definition at line 336 of file draw_command.hh.
|
inline |
Definition at line 338 of file draw_command.hh.
|
inline |
Definition at line 340 of file draw_command.hh.
|
inline |
Definition at line 342 of file draw_command.hh.
|
inline |
Definition at line 344 of file draw_command.hh.
| void blender::draw::command::SpecializeConstant::execute | ( | ) | const |
Definition at line 132 of file draw_command.cc.
References BLI_assert, bool_ref, bool_value, BoolReference, BoolValue, float_ref, float_value, FloatReference, FloatValue, GPU_shader_constant_bool_ex(), GPU_shader_constant_float_ex(), GPU_shader_constant_int_ex(), GPU_shader_constant_uint_ex(), int_ref, int_value, IntReference, IntValue, uint_ref, uint_value, UintReference, and UintValue.
| std::string blender::draw::command::SpecializeConstant::serialize | ( | ) | const |
Definition at line 508 of file draw_command.cc.
References bool_ref, bool_value, BoolReference, BoolValue, float_ref, float_value, FloatReference, FloatValue, int_ref, int_value, IntReference, IntValue, uint_ref, uint_value, UintReference, and UintValue.
| union { ... } blender::draw::command::SpecializeConstant |
| const bool* blender::draw::command::SpecializeConstant::bool_ref |
Definition at line 312 of file draw_command.hh.
Referenced by execute(), and serialize().
| bool blender::draw::command::SpecializeConstant::bool_value |
Definition at line 308 of file draw_command.hh.
Referenced by execute(), and serialize().
| const float* blender::draw::command::SpecializeConstant::float_ref |
Definition at line 311 of file draw_command.hh.
Referenced by execute(), and serialize().
| float blender::draw::command::SpecializeConstant::float_value |
Definition at line 307 of file draw_command.hh.
Referenced by execute(), and serialize().
| const int* blender::draw::command::SpecializeConstant::int_ref |
Definition at line 309 of file draw_command.hh.
Referenced by execute(), and serialize().
| int blender::draw::command::SpecializeConstant::int_value |
Definition at line 305 of file draw_command.hh.
Referenced by execute(), and serialize().
| int blender::draw::command::SpecializeConstant::location |
Definition at line 315 of file draw_command.hh.
| GPUShader* blender::draw::command::SpecializeConstant::shader |
Definition at line 302 of file draw_command.hh.
| enum blender::draw::command::SpecializeConstant::Type blender::draw::command::SpecializeConstant::type |
| const uint* blender::draw::command::SpecializeConstant::uint_ref |
Definition at line 310 of file draw_command.hh.
Referenced by execute(), and serialize().
| uint blender::draw::command::SpecializeConstant::uint_value |
Definition at line 306 of file draw_command.hh.
Referenced by execute(), and serialize().