WgslArray
Defined in: packages/typegpu/src/data/wgslTypes.ts:1200
Array schema constructed via d.arrayOf function.
Responsible for handling reading and writing array values
between binary and JS representation. Takes into account
the byteAlignment requirement of its elementType.
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”TElement
Section titled “TElement”TElement extends BaseData = BaseData
Call Signature
Section titled “Call Signature”WgslArray<
T>(elements):Infer<T>[]
Defined in: packages/typegpu/src/data/wgslTypes.ts:1206
Array schema constructed via d.arrayOf function.
Responsible for handling reading and writing array values
between binary and JS representation. Takes into account
the byteAlignment requirement of its elementType.
Type Parameters
Section titled “Type Parameters”T extends BaseData
Parameters
Section titled “Parameters”elements
Section titled “elements”Infer<T>[]
Returns
Section titled “Returns”Infer<T>[]
Call Signature
Section titled “Call Signature”WgslArray():
Infer<TElement>[]
Defined in: packages/typegpu/src/data/wgslTypes.ts:1207
Array schema constructed via d.arrayOf function.
Responsible for handling reading and writing array values
between binary and JS representation. Takes into account
the byteAlignment requirement of its elementType.
Returns
Section titled “Returns”Infer<TElement>[]
Properties
Section titled “Properties”[$gpuCallableStrictSignature]?
Section titled “[$gpuCallableStrictSignature]?”
optional[$gpuCallableStrictSignature]:GPUCallableStrictSignature
Defined in: packages/typegpu/src/types.ts:484
Inherited from
Section titled “Inherited from”GPUCallable.[$gpuCallableStrictSignature]
[$gpuRepr]
Section titled “[$gpuRepr]”
readonly[$gpuRepr]:InferGPU<TElement>[]
Defined in: packages/typegpu/src/data/wgslTypes.ts:1212
[$inRepr]
Section titled “[$inRepr]”
readonly[$inRepr]: readonlyInferInput<TElement>[] |TypedArrayFor<TElement>
Defined in: packages/typegpu/src/data/wgslTypes.ts:1211
[$internal]
Section titled “[$internal]”
readonly[$internal]:Record<string,unknown>
Defined in: packages/typegpu/src/data/wgslTypes.ts:46
Inherited from
Section titled “Inherited from”[$invalidSchemaReason]
Section titled “[$invalidSchemaReason]”
readonly**[{ExtractInvalidSchemaError<TElement, "">}` “
Defined in: packages/typegpu/src/data/wgslTypes.ts:1223
[$memIdent]
Section titled “[$memIdent]”
readonly[$memIdent]:WgslArray<MemIdentity<TElement>>
Defined in: packages/typegpu/src/data/wgslTypes.ts:1219
[$repr]
Section titled “[$repr]”
readonly[$repr]:Infer<TElement>[]
Defined in: packages/typegpu/src/data/wgslTypes.ts:1210
Overrides
Section titled “Overrides”[$reprPartial]
Section titled “[$reprPartial]”
readonly[$reprPartial]:object[] |undefined
Defined in: packages/typegpu/src/data/wgslTypes.ts:1213
[$reprPatch]
Section titled “[$reprPatch]”
readonly[$reprPatch]:TypedArrayFor<TElement> |InferInput<TElement>[] |Record<number,InferPatch<TElement>> |undefined
Defined in: packages/typegpu/src/data/wgslTypes.ts:1214
[$validStorageSchema]
Section titled “[$validStorageSchema]”
readonly[$validStorageSchema]:IsValidStorageSchema<TElement>
Defined in: packages/typegpu/src/data/wgslTypes.ts:1220
[$validUniformSchema]
Section titled “[$validUniformSchema]”
readonly[$validUniformSchema]:IsValidUniformSchema<TElement>
Defined in: packages/typegpu/src/data/wgslTypes.ts:1221
[$validVertexSchema]
Section titled “[$validVertexSchema]”
readonly[$validVertexSchema]:IsValidVertexSchema<TElement>
Defined in: packages/typegpu/src/data/wgslTypes.ts:1222
elementCount
Section titled “elementCount”
readonlyelementCount:number
Defined in: packages/typegpu/src/data/wgslTypes.ts:1203
elementType
Section titled “elementType”
readonlyelementType:TElement
Defined in: packages/typegpu/src/data/wgslTypes.ts:1204
readonlytype:"array"
Defined in: packages/typegpu/src/data/wgslTypes.ts:1202
Overrides
Section titled “Overrides”Methods
Section titled “Methods”[$gpuCallable]()
Section titled “[$gpuCallable]()”[$gpuCallable](
ctx,args):Snippet
Defined in: packages/typegpu/src/types.ts:483
Parameters
Section titled “Parameters”ResolutionCtx
readonly [Snippet | undefined]
Returns
Section titled “Returns”Snippet
Inherited from
Section titled “Inherited from”GPUCallable.[$gpuCallable]
toString()
Section titled “toString()”toString():
string
Defined in: packages/typegpu/src/data/wgslTypes.ts:49
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.