Skip to content

CF_DrawSplit3d

Category: draw3d
GitHub: cute_draw3d.h


Why one mesh submission could not join the previous one's instanced draw.

Values

Enum Description
CF_DRAW_SPLIT_3D_NONE Nothing broke -- the submission coalesced. Never counted.
CF_DRAW_SPLIT_3D_FIRST Nothing to join: the first submission, or 2d drawing came between.
CF_DRAW_SPLIT_3D_MESH A different mesh. Group submissions by mesh, or bake a draw list.
CF_DRAW_SPLIT_3D_SHADER A different shader was pushed.
CF_DRAW_SPLIT_3D_RENDER_STATE A different render state was pushed.
CF_DRAW_SPLIT_3D_UNIFORMS Uniforms or textures changed. Prefer mesh attributes for per-object data.
CF_DRAW_SPLIT_3D_CAMERA The camera changed (projection or view).
CF_DRAW_SPLIT_3D_LAYER A different layer.
CF_DRAW_SPLIT_3D_SCISSOR A different scissor rect.
CF_DRAW_SPLIT_3D_VIEWPORT A different viewport.
CF_DRAW_SPLIT_3D_TEXTURE Sprite texturing was toggled on or off.
CF_DRAW_SPLIT_3D_ESCAPE The escape hatch: a mesh with its own instance buffer never coalesces.

CF_DrawStats3d
cf_draw3d_stats
cf_draw_split_3d_to_string