Blend mode enumeration for custom rendering.
Backend-agnostic graphics enumerations.
Core type definitions and utilities for ESEngine.
bool writesStencil(GfxStencilMode mode)
GfxStencilMode
Stencil behaviour baked into a pipeline. The reference value is dynamic (GfxDevice::setStencilReferen...
@ Test
Draw only INSIDE the mask: func Equal, op Keep.
@ Write
Write the reference where drawn (mask fill): func Always, op Replace, color write off.
@ Decrement
Restore the parent reference on leaving a nested mask.
@ Increment
Enter a nested mask only where the parent reference matches.
@ TestOutside
Draw only OUTSIDE it: func NotEqual, op Keep — a hole, not a window.
@ Off
No stencil test; full color write.
@ Zero
Retire a root mask without writing color.
std::int16_t i16
Signed 16-bit integer.
PipelineHandle
Opaque handle to a cached pipeline; PipelineHandle{0} is the null/invalid handle.
std::uint32_t u32
Unsigned 32-bit integer.
BlendMode
Predefined blend modes for rendering.
std::uint8_t u8
Unsigned 8-bit integer.
GfxTopology
How a pipeline's indices assemble into primitives. Baked into the pipeline, as WebGPU bakes it,...
@ Triangles
Every three indices a triangle: all geometry the engine draws.
@ Lines
Every two indices a line segment: a mesh's edges, for a diagnostic view.
Immutable description of a draw pipeline. Equality keys the pipeline cache, so two draws with the sam...
bool operator==(const PipelineDesc &) const =default
bool colorWrite
False writes no colour, to either attachment: a depth-only pass, whose surfaces are then drawn again ...
VertexLayoutHandle vertexLayout