Re-exports§
pub use camera::Camera2D;pub use shader::ShaderStore;pub use postprocess::PostProcessPipeline;
Modules§
Structs§
- GpuContext
- Holds the wgpu device, queue, surface, and configuration.
- Light
Data - GPU-aligned light data. Each light = 32 bytes (2 x vec4).
- Lighting
State - Lighting
Uniform - GPU uniform for lighting. Total size = 16 + 8*32 = 272 bytes. Must be 16-byte aligned.
- Point
Light - Renderer
- Top-level renderer that owns the GPU context, sprite pipeline, and textures.
- Sprite
Command - A sprite draw command queued from TypeScript.
- Sprite
Pipeline - Texture
Store - Handle-based texture store. Loads PNGs, uploads to GPU, returns opaque handles.
- Tilemap
- A tile-based map that references a texture atlas. Tile ID 0 = empty (not drawn). IDs 1+ map to atlas positions (1-indexed).
- Tilemap
Store - Manages tilemap instances by ID.
Constants§
Type Aliases§
- Texture
Id - Opaque handle to a loaded texture.