diff --git a/examples/shader/compute_shader_game_of_life.rs b/examples/shader/compute_shader_game_of_life.rs index 48fac29e7b..cb7d283d1e 100644 --- a/examples/shader/compute_shader_game_of_life.rs +++ b/examples/shader/compute_shader_game_of_life.rs @@ -229,6 +229,8 @@ impl render_graph::Node for GameOfLifeNode { CachedPipelineState::Ok(_) => { self.state = GameOfLifeState::Init; } + // If the shader hasn't loaded yet, just wait. + CachedPipelineState::Err(PipelineCacheError::ShaderNotLoaded(_)) => {} CachedPipelineState::Err(err) => { panic!("Initializing assets/{SHADER_ASSET_PATH}:\n{err}") }