API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeUniformInput
@codexo/exojs / rendering / stable
The value a field of type `T` accepts.
0
props
0
methods
0
events
Import
import { UniformInput } from '@codexo/exojs'The value a field of type `T` accepts.
Definition1
T extends UniformType.Float | UniformType.Int | UniformType.Uint ? number : T extends UniformType.Vec2 ? UniformVec2InputA `vec2<f32>` value: a tuple, a Vector, or any `x`/`y` carrier. : T extends UniformType.Vec3 ? UniformVec3InputA `vec3<f32>` value. : T extends UniformType.Vec4 ? UniformVec4InputA `vec4<f32>` value. A Color maps to RGBA with the colour channels normalized to 0..1; its alpha is already in that range. : T extends UniformType.Mat3 ? UniformMat3InputA `mat3x3<f32>` value: nine components in column-major order, or a Matrix. : T extends UniformType.Mat4 ? UniformMat4InputA `mat4x4<f32>` value: sixteen components in column-major order. : 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> ? UniformStructInputThe values a struct's fields accept, all optional.<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> ? ReadonlyArray<UniformInput<E>> : neverSource