Blender V5.3
IndexLoad Struct Reference

#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

Detailed Description

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.

Member Function Documentation

◆ load()

uint IndexLoad::load ( uint element_index) const
inline

Member Data Documentation

◆ gpu_index_16bit

const bool IndexLoad::gpu_index_16bit

Definition at line 20 of file gpu_shader_index_load.bsl.hh.

Referenced by load().

◆ gpu_index_base_index

const int IndexLoad::gpu_index_base_index

Definition at line 21 of file gpu_shader_index_load.bsl.hh.

Referenced by load().

◆ gpu_index_buf

const uint(& IndexLoad::gpu_index_buf)[]

Definition at line 17 of file gpu_shader_index_load.bsl.hh.

Referenced by load().

◆ gpu_index_no_buffer

const bool IndexLoad::gpu_index_no_buffer

Definition at line 19 of file gpu_shader_index_load.bsl.hh.

Referenced by load().


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