Lysa  0.0
Lysa 3D Engine
DrawParam Struct Reference

Detailed Description

GPU-side per-primitive parameters uploaded to the params buffer.

Public Attributes

uint32 primitiveType
 Discriminant matching a DrawPrimType value. More...
 
uint32 firstVertex
 Index of the first vertex in the shared vertex buffer. More...
 
uint32 vertexCount
 Number of vertices belonging to this primitive. More...
 
uint32 visible {1}
 1 = drawn, 0 = culled by the GPU indirect command generator. More...
 
float4 color
 Base color (RGBA) tint applied to the primitive. More...
 
int32 textureIndex {-1}
 Index into the images descriptor array (-1 = no texture). More...
 
int32 fontIndex {-1}
 Index into the font atlas descriptor array (-1 = no font). More...
 

Member Data Documentation

float4 color

Base color (RGBA) tint applied to the primitive.

uint32 firstVertex

Index of the first vertex in the shared vertex buffer.

int32 fontIndex {-1}

Index into the font atlas descriptor array (-1 = no font).

uint32 primitiveType

Discriminant matching a DrawPrimType value.

int32 textureIndex {-1}

Index into the images descriptor array (-1 = no texture).

uint32 vertexCount

Number of vertices belonging to this primitive.

uint32 visible {1}

1 = drawn, 0 = culled by the GPU indirect command generator.