|
Blender V5.0
|
#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::Shader * | 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 313 of file draw_command.hh.
|
strong |
| Enumerator | |
|---|---|
| IntValue | |
| UintValue | |
| FloatValue | |
| BoolValue | |
| IntReference | |
| UintReference | |
| FloatReference | |
| BoolReference | |
Definition at line 330 of file draw_command.hh.
|
default |
|
inline |
Definition at line 343 of file draw_command.hh.
References float_value, location, shader, and type.
|
inline |
|
inline |
Definition at line 347 of file draw_command.hh.
References location, shader, type, and uint_value.
|
inline |
Definition at line 349 of file draw_command.hh.
References bool_value, location, shader, and type.
|
inline |
|
inline |
|
inline |
|
inline |
| void blender::draw::command::SpecializeConstant::execute | ( | command::RecordingState & | state | ) | const |
Definition at line 136 of file draw_command.cc.
References BLI_assert, bool_ref, bool_value, BoolReference, BoolValue, float_ref, float_value, FloatReference, FloatValue, GPU_shader_get_default_constant_state(), int_ref, int_value, IntReference, IntValue, location, shader, state, type, uint_ref, uint_value, UintReference, and UintValue.
| std::string blender::draw::command::SpecializeConstant::serialize | ( | ) | const |
Definition at line 538 of file draw_command.cc.
References bool_ref, bool_value, BoolReference, BoolValue, float_ref, float_value, FloatReference, FloatValue, int_ref, int_value, IntReference, IntValue, location, type, uint_ref, uint_value, UintReference, and UintValue.
| union { ... } blender::draw::command::SpecializeConstant |
| const bool* blender::draw::command::SpecializeConstant::bool_ref |
Definition at line 325 of file draw_command.hh.
Referenced by execute(), serialize(), and SpecializeConstant().
| bool blender::draw::command::SpecializeConstant::bool_value |
Definition at line 321 of file draw_command.hh.
Referenced by execute(), serialize(), and SpecializeConstant().
| const float* blender::draw::command::SpecializeConstant::float_ref |
Definition at line 324 of file draw_command.hh.
Referenced by execute(), serialize(), and SpecializeConstant().
| float blender::draw::command::SpecializeConstant::float_value |
Definition at line 320 of file draw_command.hh.
Referenced by execute(), serialize(), and SpecializeConstant().
| const int* blender::draw::command::SpecializeConstant::int_ref |
Definition at line 322 of file draw_command.hh.
Referenced by execute(), serialize(), and SpecializeConstant().
| int blender::draw::command::SpecializeConstant::int_value |
Definition at line 318 of file draw_command.hh.
Referenced by execute(), serialize(), and SpecializeConstant().
| int blender::draw::command::SpecializeConstant::location |
Definition at line 328 of file draw_command.hh.
Referenced by execute(), serialize(), SpecializeConstant(), SpecializeConstant(), SpecializeConstant(), SpecializeConstant(), SpecializeConstant(), SpecializeConstant(), SpecializeConstant(), and SpecializeConstant().
| gpu::Shader* blender::draw::command::SpecializeConstant::shader |
Definition at line 315 of file draw_command.hh.
Referenced by execute(), SpecializeConstant(), SpecializeConstant(), SpecializeConstant(), SpecializeConstant(), SpecializeConstant(), SpecializeConstant(), SpecializeConstant(), and SpecializeConstant().
| enum blender::draw::command::SpecializeConstant::Type blender::draw::command::SpecializeConstant::type |
| const uint* blender::draw::command::SpecializeConstant::uint_ref |
Definition at line 323 of file draw_command.hh.
Referenced by execute(), serialize(), and SpecializeConstant().
| uint blender::draw::command::SpecializeConstant::uint_value |
Definition at line 319 of file draw_command.hh.
Referenced by execute(), serialize(), and SpecializeConstant().