WgslArray
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 extends BaseData = BaseData
WgslArray<
T>(elements):Infer<T>[]
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>[]
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:1289
WgslArray():
Infer<TElement>[]
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>[]
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:1290
Properties
Section titled “Properties”[$gpuRepr]
Section titled “[$gpuRepr]”
readonly[$gpuRepr]:InferGPU<TElement>[]
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:1297
[$internal]
Section titled “[$internal]”
readonly[$internal]:true|Record<string,any>
Inherited from
Section titled “Inherited from”Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:41
[$invalidSchemaReason]
Section titled “[$invalidSchemaReason]”
readonly**[{ExtractInvalidSchemaError<TElement, "">}`
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:1305
[$memIdent]
Section titled “[$memIdent]”
readonly[$memIdent]:WgslArray<MemIdentity<TElement>>
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:1301
[$repr]
Section titled “[$repr]”
readonly[$repr]:Infer<TElement>[]
Overrides
Section titled “Overrides”Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:1296
[$reprPartial]
Section titled “[$reprPartial]”
readonly[$reprPartial]:undefined|object[]
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:1298
[$validStorageSchema]
Section titled “[$validStorageSchema]”
readonly[$validStorageSchema]:IsValidStorageSchema<TElement>
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:1302
[$validUniformSchema]
Section titled “[$validUniformSchema]”
readonly[$validUniformSchema]:IsValidUniformSchema<TElement>
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:1303
[$validVertexSchema]
Section titled “[$validVertexSchema]”
readonly[$validVertexSchema]:IsValidVertexSchema<TElement>
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:1304
elementCount
Section titled “elementCount”
readonlyelementCount:number
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:1292
elementType
Section titled “elementType”
readonlyelementType:TElement
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:1293
readonlytype:"array"