API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classUniformStruct
A 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 buffer and its revision. Declaring one explicitly - rather than treating any plain object as a struct - is what keeps `{ type, default }` metadata distinguishable from a group of fields.
import { UniformStruct } from '@codexo/exojs'A 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 buffer and its revision. Declaring one explicitly - rather than treating any plain object as a struct - is what keeps `{ type, default }` metadata distinguishable from a group of fields.
new(fields: F): UniformStruct<F>fields: Fkind: "struct"