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
 
uint32 firstVertex
 
uint32 vertexCount
 
uint32 visible {1}
 
float4 color
 
int32 textureIndex {-1}
 
int32 fontIndex {-1}
 
uint32 typeOrdinal {0}
 
DrawShape shape {DrawShape::NONE}
 
float4 shapeParams {}
 
uint32 sdfFirst {0}
 
uint32 sdfCount {0}
 
uint32 sdfFlags {0}
 

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.

uint32 sdfCount {0}

Number of SDF segments of a DrawShape::SVG primitive.

uint32 sdfFirst {0}

Index of the first SDF segment of a DrawShape::SVG primitive.

uint32 sdfFlags {0}

Combination of SDFFlags values.

DrawShape shape {DrawShape::NONE}

Shape rasterized by the fragment shader inside the primitive's quad.

float4 shapeParams {}

Shape geometry.

int32 textureIndex {-1}

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

uint32 typeOrdinal {0}

Rank of the primitive among the primitives of the same type, in submission order.

uint32 vertexCount

Number of vertices belonging to this primitive.

uint32 visible {1}

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