pub fn slabbed_renderlet(
primitive_id: Id<PrimitiveDescriptor>,
vertex_index: u32,
slab: &[u32],
out_color: &mut Vec4,
clip_pos: &mut Vec4,
)
Expand description
This shader uses the instance_index
as a slab id.
The instance_index
is the id
of a PrimitiveDescriptor
.
The PrimitiveDescriptor
contains an Array
of Vertex
s
as its mesh, the Id
s of a
MaterialDescriptor
and
CameraDescriptor
,
and TRS transforms.
The vertex_index
is the index of a Vertex
within the
PrimitiveDescriptor
’s vertices
Array
.