Skip to main content

Type Alias: GPUVectorModelProps

GPUVectorModelProps = Omit<RenderPipelineProps, "vs" | "fs" | "bindings"> & object

Defined in: modules/engine/src/model/gpu-vector-model.ts:128

Type Declaration​

attributes?​

optional attributes?: Record<string, ModelBuffer>

Buffer-valued attributes. Dynamic buffers are rebound when resized.

attributeVectors?​

optional attributeVectors?: GPUVectorModelAttributes

Supplemental vertex or instance vectors and constants.

bindings?​

optional bindings?: Record<string, ModelBinding>

Shader resource bindings, including dynamic buffers and dynamic textures.

constantAttributes?​

optional constantAttributes?: Record<string, TypedArray>

debugShaders?​

optional debugShaders?: "never" | "errors" | "warnings" | "always"

Show shader source in browser?

defines?​

optional defines?: Record<string, boolean | number>

Shader boolean or numeric preprocessor defines that configure shader code.

disableWarnings?​

optional disableWarnings?: boolean

Some applications intentionally supply unused attributes and bindings, and want to disable warnings

enforceMatchingVectorLengths?​

optional enforceMatchingVectorLengths?: boolean

Require aligned lengths and chunks. False requires inferDrawCount: 'no' and single chunks.

firstIndex?​

optional firstIndex?: number

First index element for WebGPU indexed draws.

firstVertex?​

optional firstVertex?: number

First vertex byte offset for WebGL indexed draws or first vertex for non-indexed draws.

fs?​

optional fs?: string | null

geometry?​

optional geometry?: GPUVectorGeometry | null

GPU-only mesh inputs, indices, and topology.

indexBuffer?​

optional indexBuffer?: ModelBuffer | null

Optional index buffer. Dynamic buffers are rebound when resized.

indexCount?​

optional indexCount?: number

Optional indexed draw count. Defaults to vertexCount, then the full bound index buffer length.

inferDrawCount?​

optional inferDrawCount?: "instance" | "vertex" | "no"

Count inferred from vector rows or each explicit batch. no preserves both counts.

Default​

'no'

instanceCount?​

optional instanceCount?: number

instance count

isInstanced?​

optional isInstanced?: boolean

Deprecated​

Use instanced rendering? Will be auto-detected in 9.1

modules?​

optional modules?: ShaderModule<any, any, any>[]

Shader modules added to shader code.

parameters?​

optional parameters?: RenderPipelineParameters

Parameters that are built into the pipeline

pipelineFactory?​

optional pipelineFactory?: PipelineFactory

Factory used to create a RenderPipeline. Defaults to Device default factory.

plugins?​

optional plugins?: ShaderPlugin[]

Reusable shader assembly plugins resolved for the active GLSL or WGSL backend.

shaderAssembler?​

optional shaderAssembler?: ShaderAssembler

Shader assembler. Defaults to the shared assembler for the device's shader language.

shaderFactory?​

optional shaderFactory?: ShaderFactory

Factory used to create a Shader. Defaults to Device default factory.

shaderInputs?​

optional shaderInputs?: ShaderInputs

Shader inputs, used to generate uniform buffers and bindings.

source?​

optional source?: string

sourceLanguage?​

optional sourceLanguage?: string

Input language compiled by the application-registered shader assembler transpiler.

transformFeedback?​

optional transformFeedback?: TransformFeedback

uniforms?​

optional uniforms?: Record<string, unknown>

WebGL-only uniforms

vertexCount?​

optional vertexCount?: number

Vertex count

vs?​

optional vs?: string | null