Skip to content

StreamOptions beta ​

Interface of @v12-engine/render

ts
export interface StreamOptions

How a stream is made (Renderer.stream): its WGSL, its bindings, its record's layout, how many and how it blends

Members ​

attributes ​

ts
attributes: readonly GPUVertexAttribute[];

A copy's record: its attributes and how many bytes it takes (a multiple of 4)

bindings ​

ts
bindings: readonly ComputeBindingDecl[];

Its own group of bindings (group 1) and what each is bound to, by name

blend ​

ts
blend: BlendMode;

How it is laid over what is behind it

capacity ​

ts
capacity: number;

The most copies it holds

depthCompare ​

ts
depthCompare?: 'less-equal' | 'always';

always for what shows through everything (a mark over the world); hidden by what is nearer when left out

name ​

ts
name: string;

What it is called, in its shader's and buffer's labels

order ​

ts
order: number;

Its place among the blended, lowest first

resources ​

ts
resources: Record<string, unknown>;

What each of its bindings is bound to, by name

source ​

ts
source: string;

The WGSL of its draw, beginning with FRAME: vertexMain (the vertex's index and a copy's record), fragmentMain

stride ​

ts
stride: number;

How many bytes a copy's record takes, a multiple of 4

vertices ​

ts
vertices: number;

Vertices drawn a copy (a quad as two triangles: 6)

views ​

ts
views?: readonly ('main' | SideView)[];

The views it is drawn in: main for the main view, side views by themselves. The main view alone where left out