API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeWgslPrimitive
WGSL primitive types accepted in WgslUniformField declarations. The codegen emits matching WGSL field declarations; the writeUniforms implementation must produce bytes in the layout WGSL expects (see https://www.w3.org/TR/WGSL/#alignment-and-size). Common pitfalls: - `vec2<f32>` aligns to 8 bytes; pad with `f32` or use `vec4<f32>`. - `vec3<f32>` aligns to 16 bytes (so does `vec4<f32>`); avoid `vec3` for tight packing. For now the supported subset covers what the built-in modules need. Add more types here as new modules require them.
import { WgslPrimitive } from '@codexo/exojs-particles'WGSL primitive types accepted in WgslUniformField declarations. The codegen emits matching WGSL field declarations; the writeUniforms implementation must produce bytes in the layout WGSL expects (see https://www.w3.org/TR/WGSL/#alignment-and-size).
Common pitfalls: - `vec2<f32>` aligns to 8 bytes; pad with `f32` or use `vec4<f32>`. - `vec3<f32>` aligns to 16 bytes (so does `vec4<f32>`); avoid `vec3` for tight packing.
For now the supported subset covers what the built-in modules need. Add more types here as new modules require them.
"f32" | "i32" | "u32" | "vec2<f32>" | "vec4<f32>"