API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeUniformAccessorFor
@codexo/exojs / rendering / stable
The accessor a field of type `T` is read and written through.
0
props
0
methods
0
events
Import
import { UniformAccessorFor } from '@codexo/exojs'The accessor a field of type `T` is read and written through.
Definition1
T extends UniformType.Float | UniformType.Int | UniformType.Uint ? UniformScalarA single `f32`, `i32` or `u32` field. : T extends UniformType.Vec2 ? UniformVector2A `vec2<f32>` field. : T extends UniformType.Vec3 ? UniformVector3A `vec3<f32>` field. : T extends UniformType.Vec4 ? UniformVector4A `vec4<f32>` field. : T extends UniformType.Mat3 ? UniformMatrix3A `mat3x3<f32>` field, stored as three 16-byte-aligned columns. : T extends UniformType.Mat4 ? UniformMatrix4A `mat4x4<f32>` field. : T extends UniformStructA struct nested inside a uniform block. A nested struct is a group of fields within the containing block, not a second GPU resource: it shares the block's buff…<F> ? UniformStructAccessorA nested struct field: its own fields, plus a bulk writer.<F> : T extends UniformArrayA fixed-length array of `length` elements of one type. Element types are restricted to those whose stride is already a multiple of 16 bytes - `vec4<f32>`, the…<E> ? UniformArrayAccessorA fixed-length array field. Element accessors are built once and reused.<UniformAccessorFor<E>, UniformInputThe value a field of type `T` accepts.<E>> : neverSource