Module context_keys

Module context_keys 

Source
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

KeyMeaning
ColorTargetTexture view to render colour into
DepthTargetTexture view for depth testing
ClearColorFramebuffer clear colour
ShadowAtlasViewShadow atlas view written by shadow lanes
ShadowComparisonSamplerPCF comparison sampler for shadow sampling

§Physics domain

KeyMeaning
PhysicsDeltaTimeFixed timestep for the current step

§Audio domain

KeyMeaning
AudioStreamInfoSample rate, channels, etc.
AudioOutputSlotMutable borrow of the output buffer

Structs§

AudioOutputSlot
Mutable borrow of the audio output buffer via raw pointer.
AudioStreamInfo
Audio stream info (sample rate, channel count, etc.).
ClearColor
Clear color for the current frame.
ColorTarget
Color render target for the current frame.
DepthTarget
Depth render target for the current frame.
PhysicsDeltaTime
Fixed timestep for the current physics step.
ShadowAtlasView
Shadow atlas texture view, written by shadow lanes after execute().
ShadowComparisonSampler
Shadow comparison sampler, written by shadow lanes after execute().