API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classUniformStruct

@codexo/exojs / rendering / stable

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.

2
props
0
methods
0
events
Import
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.

Constructors1
new(fields: F): UniformStruct<F>
Properties2
fields: F
kind: "struct"
Source