Expand description
Domain-agnostic context key types for LaneContext.
These newtypes are inserted into a LaneContext by agents and extracted
by lanes. Placing them in khora-core avoids a cyclic dependency between
khora-lanes and khora-agents.
§Render domain
| Key | Meaning |
|---|---|
ColorTarget | Texture view to render colour into |
DepthTarget | Texture view for depth testing |
ClearColor | Framebuffer clear colour |
ShadowAtlasView | Shadow atlas view written by shadow lanes |
ShadowComparisonSampler | PCF comparison sampler for shadow sampling |
§Physics domain
| Key | Meaning |
|---|---|
PhysicsDeltaTime | Fixed timestep for the current step |
§Audio domain
| Key | Meaning |
|---|---|
AudioStreamInfo | Sample rate, channels, etc. |
AudioOutputSlot | Mutable borrow of the output buffer |
Structs§
- Audio
Output Slot - Mutable borrow of the audio output buffer via raw pointer.
- Audio
Stream Info - Audio stream info (sample rate, channel count, etc.).
- Clear
Color - Clear color for the current frame.
- Color
Target - Color render target for the current frame.
- Depth
Target - Depth render target for the current frame.
- Physics
Delta Time - Fixed timestep for the current physics step.
- Shadow
Atlas View - Shadow atlas texture view, written by shadow lanes after
execute(). - Shadow
Comparison Sampler - Shadow comparison sampler, written by shadow lanes after
execute().