Untitled
Loading...
Searching...
No Matches
elements_prefix.comp File Reference

Go to the source code of this file.

Data Structures

struct  DrawElementsIndirectCommand
 DrawArraysIndirect commands are used for non-static meshes. More...

Functions

 layout (local_size_x=128, local_size_y=1, local_size_z=1) in
 layout (std430, binding=5) buffer DrawElementsData
void main ()

Variables

uniform uint n
shared uint temp [1024]

Data Structure Documentation

◆ DrawElementsIndirectCommand

struct DrawElementsIndirectCommand

DrawArraysIndirect commands are used for non-static meshes.

See also
https://registry.khronos.org/OpenGL-Refpages/gl4/html/glDrawElementsIndirect.xhtml

Definition at line 857 of file engine_types.h.

Data Fields
uint32_t count
uint32_t instanceCount
uint32_t firstIndex
uint32_t baseVertex
uint32_t baseInstance
uint32_t instanceOffset This tracks how many offsets were pushed in a frame and is used in the prefix sum.
uint count
uint instanceCount
uint firstIndex
uint baseVertex
uint baseInstance
uint instanceOffset

Function Documentation

◆ layout() [1/2]

layout ( local_size_x = 128,
local_size_y = 1,
local_size_z = 1 )

References layout().

◆ layout() [2/2]

layout ( std430 ,
binding = 5 )

Definition at line 15 of file elements_prefix.comp.

References layout().

◆ main()

void main ( )

Definition at line 29 of file elements_prefix.comp.

References main(), n, and temp.

Variable Documentation

◆ n

◆ temp