RenderPipeline
On this page

RenderPipeline

Interface in Runtime

A render pipeline: a vertex entry, a fragment entry and the state, drawn with bindings by name.

import type { RenderPipeline } from 'typeshade/runtime'

The signature, the description and the examples come from the compiler's own source at commit 26de7be8.

Syntax

interface RenderPipeline {
readonly vertex: string;
readonly fragment: string | null;
draw(pass: object, bindings: Bindings, geometry: Geometry): void;
}

Instance properties

vertexread only string
fragmentread only string | null

Instance methods

draw (pass: object, bindings: Bindings, geometry: Geometry): void

Record a draw into the host’s render pass, or a frame’s.

Source

src/runtime/program.ts, line 145, at commit 26de7be8

Edit this page Report a problem