52static_assert(
sizeof(InstanceConstants) == 16,
53 "InstanceConstants must be one vec4 to match std140");
65 static bool on =
false;
Core type definitions and utilities for ESEngine.
bool & glslMultiDraw()
Whether this process's GLSL mesh programs count through a run's entries by gl_DrawID.
constexpr u32 MULTI_DRAW_MAX
The most draws one call may carry where the device draws runs (WEBGL_multi_draw).
constexpr const char * INSTANCE_DATA_SAMPLER
GLSL name of the record texture; pinned to its unit by Shader::compile.
std::uint32_t u32
Unsigned 32-bit integer.
constexpr const char * INSTANCE_CONSTANTS_BLOCK
GLSL block name; must match the injected mesh header + Shader::compile lookup.
constexpr u32 INSTANCE_CONSTANTS_BINDING
Indexed UBO binding point for the per-draw InstanceConstants block. Nine and not four: slot 4 is DRAW...
Where one draw's entry is: a texel of the record texture.