WgslArray
Defined in: packages/typegpu/src/data/wgslTypes.ts:1264
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
>[]
Defined in: packages/typegpu/src/data/wgslTypes.ts:1266
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
>[]
WgslArray():
Infer
<TElement
>[]
Defined in: packages/typegpu/src/data/wgslTypes.ts:1267
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”[$gpuRepr]
Section titled “[$gpuRepr]”
readonly
[$gpuRepr]:InferGPU
<TElement
>[]
Defined in: packages/typegpu/src/data/wgslTypes.ts:1274
[$internal]
Section titled “[$internal]”
readonly
[$internal]:true
|Record
<string
,any
>
Defined in: packages/typegpu/src/data/wgslTypes.ts:34
Inherited from
Section titled “Inherited from”[$invalidSchemaReason]
Section titled “[$invalidSchemaReason]”
readonly
[$invalidSchemaReason]:`in array element — ${ExtractInvalidSchemaError<TElement, "">}`
Defined in: packages/typegpu/src/data/wgslTypes.ts:1282
[$memIdent]
Section titled “[$memIdent]”
readonly
[$memIdent]:WgslArray
<MemIdentity
<TElement
>>
Defined in: packages/typegpu/src/data/wgslTypes.ts:1278
[$repr]
Section titled “[$repr]”
readonly
[$repr]:Infer
<TElement
>[]
Defined in: packages/typegpu/src/data/wgslTypes.ts:1273
Overrides
Section titled “Overrides”[$reprPartial]
Section titled “[$reprPartial]”
readonly
[$reprPartial]:undefined
|object
[]
Defined in: packages/typegpu/src/data/wgslTypes.ts:1275
[$validStorageSchema]
Section titled “[$validStorageSchema]”
readonly
[$validStorageSchema]:IsValidStorageSchema
<TElement
>
Defined in: packages/typegpu/src/data/wgslTypes.ts:1279
[$validUniformSchema]
Section titled “[$validUniformSchema]”
readonly
[$validUniformSchema]:IsValidUniformSchema
<TElement
>
Defined in: packages/typegpu/src/data/wgslTypes.ts:1280
[$validVertexSchema]
Section titled “[$validVertexSchema]”
readonly
[$validVertexSchema]:IsValidVertexSchema
<TElement
>
Defined in: packages/typegpu/src/data/wgslTypes.ts:1281
elementCount
Section titled “elementCount”
readonly
elementCount:number
Defined in: packages/typegpu/src/data/wgslTypes.ts:1269
elementType
Section titled “elementType”
readonly
elementType:TElement
Defined in: packages/typegpu/src/data/wgslTypes.ts:1270
readonly
type:"array"
Defined in: packages/typegpu/src/data/wgslTypes.ts:1268