Skip to main content
A compiled GPU render pipeline (shaders + fixed-function state).

Constructors

new

new(desc: {vertex: PipelineStage, fragment: PipelineStage?, vertexLayout:{VertexBufferLayout}, bindGroupLayouts:{GPUBindGroupLayout}?, colorTargets:{ColorTarget}?, depthStencil: DepthStencilState?, cullMode: CullMode?, topology: PrimitiveTopology?, sampleCount: number?,}) -> GPUPipeline

Methods

getBindGroupLayout

getBindGroupLayout(groupIndex: number) -> GPUBindGroupLayout
Returns the layout the pipeline auto-derived for @group(N). Errors if bindGroupLayouts was supplied at construction (reuse the explicit one) or if N is not bound by the shader. Mirrors WebGPU’s pipeline.getBindGroupLayout(index).