API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
namespaceParticles Functions
@codexo/exojs-particles / particles / stable
Free functions and constants exported from @codexo/exojs-particles.
2
props
3
methods
0
events
Overview
Free functions and constants exported from @codexo/exojs-particles. Import any of them directly, for example `import { createParticlesExtension } from '@codexo/exojs-particles'`.
Functions3
Create a Particles extension with custom configuration. Returns an application-local descriptor - safe to pass to one Application only. For shared use, prefer particlesExtension.
getWgslFieldLayout(type: WgslPrimitiveWGSL primitive types accepted in WgslUniformField declarations. The codegen emits matching WGSL field declarations; the writeUniforms implementation must produ…): { align: number; size: number }Per-WGSL-primitive size and alignment in bytes.
getWgslUniformByteSize(fields: readonly WgslUniformFieldA named uniform field within a module's struct. Order matters - defines memory layout.[]): numberCompute the byte size of a uniform struct from its declared fields, respecting WGSL std140-like alignment rules. Each field aligns to its natural alignment; the struct itself rounds to its largest alignment. Used by the codegen to size the system's combined uniform buffer.
Constants2
Default immutable Particles extension descriptor. Pass it to the application that should have it via ApplicationOptions.extensions.