Type Alias: GPUVectorModelProps
GPUVectorModelProps =
Omit<RenderPipelineProps,"vs"|"fs"|"bindings"> &object
Defined in: modules/engine/src/model/gpu-vector-model.ts:128
Type Declaration
attributes?
optionalattributes?:Record<string,ModelBuffer>
Buffer-valued attributes. Dynamic buffers are rebound when resized.
attributeVectors?
optionalattributeVectors?:GPUVectorModelAttributes
Supplemental vertex or instance vectors and constants.
bindings?
optionalbindings?:Record<string,ModelBinding>
Shader resource bindings, including dynamic buffers and dynamic textures.
constantAttributes?
optionalconstantAttributes?:Record<string,TypedArray>
debugShaders?
optionaldebugShaders?:"never"|"errors"|"warnings"|"always"
Show shader source in browser?
defines?
optionaldefines?:Record<string,boolean|number>
Shader boolean or numeric preprocessor defines that configure shader code.
disableWarnings?
optionaldisableWarnings?:boolean
Some applications intentionally supply unused attributes and bindings, and want to disable warnings
enforceMatchingVectorLengths?
optionalenforceMatchingVectorLengths?:boolean
Require aligned lengths and chunks. False requires inferDrawCount: 'no' and single chunks.
firstIndex?
optionalfirstIndex?:number
First index element for WebGPU indexed draws.
firstVertex?
optionalfirstVertex?:number
First vertex byte offset for WebGL indexed draws or first vertex for non-indexed draws.
fs?
optionalfs?:string|null
geometry?
optionalgeometry?:GPUVectorGeometry|null
GPU-only mesh inputs, indices, and topology.
indexBuffer?
optionalindexBuffer?:ModelBuffer|null
Optional index buffer. Dynamic buffers are rebound when resized.
indexCount?
optionalindexCount?:number
Optional indexed draw count. Defaults to vertexCount, then the full bound index buffer length.
inferDrawCount?
optionalinferDrawCount?:"instance"|"vertex"|"no"
Count inferred from vector rows or each explicit batch. no preserves both counts.
Default
'no'
instanceCount?
optionalinstanceCount?:number
instance count
isInstanced?
optionalisInstanced?:boolean
Deprecated
Use instanced rendering? Will be auto-detected in 9.1
modules?
optionalmodules?:ShaderModule<any,any,any>[]
Shader modules added to shader code.
parameters?
optionalparameters?:RenderPipelineParameters
Parameters that are built into the pipeline
pipelineFactory?
optionalpipelineFactory?:PipelineFactory
Factory used to create a RenderPipeline. Defaults to Device default factory.
plugins?
optionalplugins?:ShaderPlugin[]
Reusable shader assembly plugins resolved for the active GLSL or WGSL backend.
shaderAssembler?
optionalshaderAssembler?:ShaderAssembler
Shader assembler. Defaults to the shared assembler for the device's shader language.
shaderFactory?
optionalshaderFactory?:ShaderFactory
Factory used to create a Shader. Defaults to Device default factory.
shaderInputs?
optionalshaderInputs?:ShaderInputs
Shader inputs, used to generate uniform buffers and bindings.
source?
optionalsource?:string
sourceLanguage?
optionalsourceLanguage?:string
Input language compiled by the application-registered shader assembler transpiler.
transformFeedback?
optionaltransformFeedback?:TransformFeedback
uniforms?
optionaluniforms?:Record<string,unknown>
WebGL-only uniforms
vertexCount?
optionalvertexCount?:number
Vertex count
vs?
optionalvs?:string|null