|
Blender V5.3
|
#include <gpu_shader_index_load.bsl.hh>
Public Member Functions | |
| uint | load (uint element_index) const |
Public Attributes | |
| const uint(& | gpu_index_buf )[] |
| const bool | gpu_index_no_buffer |
| const bool | gpu_index_16bit |
| const int | gpu_index_base_index |
Library to read the index buffer of a gpu::Batch using a SSBO rather than using gl_VertexID. This is required for primitive expansion without geometry shader. It is not needed if it is guaranteed that the processed gpu::Batch will not use any index buffer.
Definition at line 16 of file gpu_shader_index_load.bsl.hh.
|
inline |
Returns the resolved index after index buffer (a.k.a. element buffer) indirection.
Definition at line 26 of file gpu_shader_index_load.bsl.hh.
References gpu_index_16bit, gpu_index_base_index, gpu_index_buf, and gpu_index_no_buffer.
Referenced by overlay::armature::shape::outline::Resources::input_assembly(), overlay::armature::shape::wire::Resources::input_assembly(), and workbench::shadow::Resources::input_assembly().
| const bool IndexLoad::gpu_index_16bit |
Definition at line 20 of file gpu_shader_index_load.bsl.hh.
Referenced by load().
| const int IndexLoad::gpu_index_base_index |
Definition at line 21 of file gpu_shader_index_load.bsl.hh.
Referenced by load().
| const uint(& IndexLoad::gpu_index_buf)[] |
Definition at line 17 of file gpu_shader_index_load.bsl.hh.
Referenced by load().
| const bool IndexLoad::gpu_index_no_buffer |
Definition at line 19 of file gpu_shader_index_load.bsl.hh.
Referenced by load().