Documentation / device / UniformLayout
Interface: UniformLayout
Defined in: libs/device/src/gpuobject.ts:1105
Layout of a uniform in a uniform buffer
Properties
name
name:
string
Defined in: libs/device/src/gpuobject.ts:1107
Name of the uniform
offset
offset:
number
Defined in: libs/device/src/gpuobject.ts:1109
Byte offset of the uniform buffer
byteSize
byteSize:
number
Defined in: libs/device/src/gpuobject.ts:1111
Byte size of the uniform
arraySize
arraySize:
number
Defined in: libs/device/src/gpuobject.ts:1113
The array length if the uniform is array type
type
type:
PBPrimitiveType
Defined in: libs/device/src/gpuobject.ts:1115
The primitive type of the uniform
subLayout
subLayout:
UniformBufferLayout
Defined in: libs/device/src/gpuobject.ts:1117
Layout of the members if the uniform is struct type