Skip to content

Documentation / device / UniformLayout

Interface: UniformLayout ​

Defined in: libs/device/src/gpuobject.ts:1114

Layout of a uniform in a uniform buffer

Properties ​

name ​

name: string

Defined in: libs/device/src/gpuobject.ts:1116

Name of the uniform


offset ​

offset: number

Defined in: libs/device/src/gpuobject.ts:1118

Byte offset of the uniform buffer


byteSize ​

byteSize: number

Defined in: libs/device/src/gpuobject.ts:1120

Byte size of the uniform


arraySize ​

arraySize: number

Defined in: libs/device/src/gpuobject.ts:1122

The array length if the uniform is array type


type ​

type: PBPrimitiveType

Defined in: libs/device/src/gpuobject.ts:1124

The primitive type of the uniform


subLayout ​

subLayout: UniformBufferLayout

Defined in: libs/device/src/gpuobject.ts:1126

Layout of the members if the uniform is struct type

Released under the MIT License.