Type Aliases BVec4 BVec4: [ boolean , boolean , boolean , boolean ]
Blending Equation Blending Equation: "add" | "subtract" | "reverse subtract" | "min" | "max"
Blending Function Blending Function: "zero" | 0 | "one" | 1 | "src color" | "one minus src color" | "src alpha" | "one minus src alpha" | "dst color" | "one minus dst color" | "dst alpha" | "one minus dst alpha" | "constant color" | "one minus constant color" | "constant alpha" | "one minus constant alpha" | "src alpha saturate"
Buffer Data Buffer Data: number [] | number [] [] | Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array | Float32Array
Buffer Data Type Buffer Data Type: "uint8" | "int8" | "uint16" | "int16" | "uint32" | "int32" | "float32" | "float"
Buffer Usage Hint Buffer Usage Hint: "static" | "dynamic" | "stream"
Command Body Fn Command Body Fn< Context , Props > : ( ( context: Context , props: Props , batchId: number ) => void )
Type Parameters Type declaration ( context: Context , props: Props , batchId: number ) : void Parameters context: Context props: Props batchId: number Returns void Comparison Operator Type Comparison Operator Type: "never" | "always" | "less" | "<" | "lequal" | "<=" | "greater" | ">" | "gequal" | ">=" | "equal" | "=" | "notequal" | "!="
Dynamic Variable Fn Dynamic Variable Fn< Return , Context , Props > : ( ( context: Context , props: Props , batchId: number ) => Return )
Type Parameters Return Props extends {} = {} Type declaration ( context: Context , props: Props , batchId: number ) : Return Parameters context: Context props: Props batchId: number Returns Return Elements Data Elements Data: number [] | number [] [] | Uint8Array | Uint16Array | Uint32Array
Elements Data Type Elements Data Type: "uint8" | "uint16" | "uint32"
Face Orientation Type Face Orientation Type: "front" | "back"
Face Winding Type Face Winding Type: "cw" | "ccw"
Framebuffer Color Data Type Framebuffer Color Data Type: "uint8" | "half float" | "float"
Maybe Dynamic Type Parameters Maybe Dynamic Attributes Maybe
Dynamic
Attributes
< Attributes , Context , Props > : { [ Key in keyof Attributes ] : MaybeDynamic < Attributes [ Key ] , Context , Props > } Type Parameters Maybe Dynamic Uniforms Maybe
Dynamic
Uniforms
< Uniforms , Context , Props > : { [ Key in keyof Uniforms ] : MaybeDynamic < Uniforms [ Key ] , Context , Props > | MaybeDynamic < Uniforms [ Key ] , Context , Props > [] } Type Parameters Uniforms extends Uniforms Props extends {} Maybe Nested Dynamic Maybe
Nested
Dynamic
< Type , Context , Props > : { [ K in keyof Type ] : MaybeDynamic < Type [ K ] , Context , Props > } Type Parameters Primitive Type Primitive Type: "points" | "lines" | "line strip" | "line loop" | "triangles" | "triangle strip" | "triangle fan"
Renderbuffer Color Format Renderbuffer Color Format: "rgba4" | "rgb565" | "rgb5 a1" | "rgb16f" | "rgba16f" | "rgba32f" | "srgba"
Stencil Operation Type Stencil Operation Type: "zero" | "keep" | "replace" | "invert" | "increment" | "decrement" | "increment wrap" | "decrement wrap"
Texture Channels Type Texture Channels Type: 1 | 2 | 3 | 4
Texture Color Space Type Texture Color Space Type: "none" | "browser"
Texture Cube Face Index Texture Cube Face Index: 0 | 1 | 2 | 3 | 4 | 5
Texture Data Type Texture Data Type: "uint8" | "uint16" | "uint32" | "float" | "float32" | "half float" | "float16"
Texture Format Type Texture Format Type: "alpha" | "luminance" | "luminance alpha" | "rgb" | "rgba" | "rgba4" | "rgb5 a1" | "rgb565" | "srgb" | "srgba" | "depth" | "depth stencil" | "rgb s3tc dxt1" | "rgba s3tc dxt1" | "rgba s3tc dxt3" | "rgba s3tc dxt5" | "rgb atc" | "rgba atc explicit alpha" | "rgba atc interpolated alpha" | "rgb pvrtc 4bppv1" | "rgb pvrtc 2bppv1" | "rgba pvrtc 4bppv1" | "rgba pvrtc 2bppv1" | "rgb etc1"
Texture Image Data Texture
Image
Data
: number [] | number [] [] | number [] [] [] | ArrayBufferView | NDArrayLike | HTMLImageElement | HTMLVideoElement | HTMLCanvasElement | CanvasRenderingContext2D Texture Mag Filter Type Texture Mag Filter Type: "nearest" | "linear"
Texture Min Filter Type Texture Min Filter Type: "nearest" | "linear" | "linear mipmap linear" | "mipmap" | "nearest mipmap linear" | "linear mipmap nearest" | "nearest mipmap nearest"
Texture Mipmap Hint Type Texture Mipmap Hint Type: "don't care" | "dont care" | "nice" | "fast"
Texture Unpack Alignment Type Texture Unpack Alignment Type: 1 | 2 | 4 | 8
Texture Wrap Mode Type Texture Wrap Mode Type: "repeat" | "clamp" | "mirror"
Uniform Uniform: boolean | number | boolean [] | number [] | Float32Array | Int32Array
User Context User
Context
< ParentContext , OwnContext , Props > : { [ Key in keyof OwnContext ] : MaybeDynamic < OwnContext [ Key ] , ParentContext , Props > } Type Parameters OwnContext extends {} Props extends {} Vec4 Vec4: [ number , number , number , number ]
Commands can be nested using scoping. If a
DrawCommandis passed aCommandBodyFn, then theDrawCommandis evaluated and its state variables are saved as the defaults for allDrawCommands invoked within theCommandBodyFn.