StreamOptions beta
Interface of @v12-engine/render
export interface StreamOptionsHow a stream is made (Renderer.stream): its WGSL, its bindings, its record's layout, how many and how it blends
Members
attributes
attributes: readonly GPUVertexAttribute[];A copy's record: its attributes and how many bytes it takes (a multiple of 4)
bindings
bindings: readonly ComputeBindingDecl[];Its own group of bindings (group 1) and what each is bound to, by name
blend
blend: BlendMode;How it is laid over what is behind it
capacity
capacity: number;The most copies it holds
depthCompare
depthCompare?: 'less-equal' | 'always';always for what shows through everything (a mark over the world); hidden by what is nearer when left out
name
name: string;What it is called, in its shader's and buffer's labels
order
order: number;Its place among the blended, lowest first
resources
resources: Record<string, unknown>;What each of its bindings is bound to, by name
source
source: string;The WGSL of its draw, beginning with FRAME: vertexMain (the vertex's index and a copy's record), fragmentMain
stride
stride: number;How many bytes a copy's record takes, a multiple of 4
vertices
vertices: number;Vertices drawn a copy (a quad as two triangles: 6)
views
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