|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Immutable GPU pipeline state — the backend-agnostic unit of "how to draw". More...


Go to the source code of this file.
Classes | |
| struct | esengine::PipelineDesc |
| Immutable description of a draw pipeline. Equality keys the pipeline cache, so two draws with the same description share one PipelineHandle. More... | |
Namespaces | |
| namespace | esengine |
Enumerations | |
| enum class | esengine::GfxStencilMode : u8 { esengine::Off , esengine::Write , esengine::Test , esengine::TestOutside , esengine::Increment , esengine::Decrement , esengine::Zero } |
| Stencil behaviour baked into a pipeline. The reference value is dynamic (GfxDevice::setStencilReference), the compare/op/masks are pipeline state. More... | |
| enum class | esengine::GfxTopology : u8 { esengine::Triangles , esengine::Lines } |
| How a pipeline's indices assemble into primitives. Baked into the pipeline, as WebGPU bakes it, so a draw call never states it: whoever binds a pipeline has said it. More... | |
| enum class | esengine::PipelineHandle : u32 { esengine::Invalid = 0 } |
| Opaque handle to a cached pipeline; PipelineHandle{0} is the null/invalid handle. More... | |
Functions | |
| bool | esengine::writesStencil (GfxStencilMode mode) |
Immutable GPU pipeline state — the backend-agnostic unit of "how to draw".
A PipelineState bundles everything that is fixed for a draw and that WebGPU bakes into an immutable GPURenderPipeline: the shader program, the vertex layout, blend, depth, stencil compare/op, and culling. The renderer resolves a PipelineDesc to an opaque PipelineHandle once (cached) and thereafter binds it with GfxDevice::setPipeline. Per-draw dynamic state — scissor rectangle and stencil reference — stays out of the pipeline (see setScissor/setStencilReference), mirroring WebGPU's split. This is the keystone abstraction that lets a WebGPU backend slot in beside the WebGL2 one.
Definition in file PipelineState.hpp.