RenderPipeline

Constructors

new RenderPipeline(options: RenderPipelineOptions): RenderPipeline

Properties

clearColor

clearColor: GPUColor

gpuPipeline

gpuPipeline: GPURenderPipeline

label

label: string

onAfterPass

onAfterPass: PipelineCallback

onBeforePass

onBeforePass: PipelineCallback

pipelineDescriptor

pipelineDescriptor: RenderPipelineDescriptor

Methods

build

build(layout: GPUPipelineLayout, buffers: GPUVertexBufferLayout[]): Promise<void>

getDevice

getDevice(): Promise<GPUDevice>

setClearColor

setClearColor(color: GPUColor): void

setDevice

setDevice(d: GPUDevice): void

setLabel

setLabel(label: string): void

setOnAfterPass

setOnAfterPass(f: PipelineCallback): void

setOnBeforePass

setOnBeforePass(f: PipelineCallback): void

You are viewing the beta docs. You may find the legacy docs more helpful.