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
Audio lanes consume an Arc<dyn AudioMixBus>
injected directly into the LaneContext by the
AudioAgent. The bus carries its
own StreamInfo, so no separate context
key is needed.
Structs§
- 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 Cube View - Cube shadow atlas texture view (point lights), bound by lit shaders as
texture_depth_cube_array. Written by shadow lanes afterexecute(). - Shadow
Atlas View - 2D shadow atlas texture view (directional / spot lights), written by
shadow lanes after
execute(). - Shadow
Comparison Sampler - Shadow comparison sampler, written by shadow lanes after
execute().