Skip to content

Documentation / @ripl/3d / UniformField

Interface: UniformField ​

Defined in: 3d/src/core/uniforms.ts:52

A single field within a uniform struct.

Properties ​

PropertyTypeDescriptionDefined in
namestringThe field's name, identical in the packer and the WGSL struct.3d/src/core/uniforms.ts:54
offsetnumberThe field's offset from the start of the struct, in 4-byte floats.3d/src/core/uniforms.ts:58
sizenumberThe field's size, in 4-byte floats.3d/src/core/uniforms.ts:60
typestringThe field's WGSL type.3d/src/core/uniforms.ts:56