Provides the object ID written by geometry rendering for a mesh.
IDs must be unsigned integers supported by the object ID texture format. ID 0 is reserved for background or excluded meshes.
RGBA textures support IDs up to 0xFFFFFF, while RED textures support IDs up to 0xFF.
Instances and thin instances use the source mesh ID, and this callback receives the source mesh for instanced draws.
This callback runs in the render hot path and may be called multiple times for the same mesh in a frame.
It should avoid allocations and return a consistent value for a mesh during a render.
Provides the object ID written by geometry rendering for a mesh.
IDs must be unsigned integers supported by the object ID texture format. ID 0 is reserved for background or excluded meshes. RGBA textures support IDs up to 0xFFFFFF, while RED textures support IDs up to 0xFF. Instances and thin instances use the source mesh ID, and this callback receives the source mesh for instanced draws. This callback runs in the render hot path and may be called multiple times for the same mesh in a frame. It should avoid allocations and return a consistent value for a mesh during a render.