Skip to main content

PipelineCache

Type Alias PipelineCache 

Source
pub type PipelineCache = HashMap<usize, CachedPipeline>;
Expand description

Pipeline cache keyed by shader source pointer address.

Safe because all shader sources are &'static str constants with stable addresses. Create one per training session and pass to GpuCommandBatch::execute_with_cache() to avoid recompiling shaders across batch executions (KAIZEN-023).

Aliased Typeยง

pub struct PipelineCache { /* private fields */ }