clarification

This commit is contained in:
Emerson Coskey 2025-07-13 12:07:12 -07:00
parent e0f7036e2d
commit f893fd5ba2
No known key found for this signature in database
2 changed files with 6 additions and 3 deletions

View File

@ -280,9 +280,10 @@ struct CustomPhaseSpecializer;
#[derive(Resource)]
struct CustomPhasePipeline {
/// Holds a reference to our shader.
_shader: Handle<Shader>,
specialized_cache: SpecializedCache<RenderPipeline, CustomPhaseSpecializer>,
/// the base_descriptor holds onto the shader handle, this field is
/// unused but here for demonstration purposes.
_shader: Handle<Shader>,
}
impl FromWorld for CustomPhasePipeline {

View File

@ -145,11 +145,13 @@ After:
```rust
#[derive(Resource)]
pub struct MyPipeline {
specialized_cache: SpecializedCache<RenderPipeline, MySpecializer>,
// these fields are unused, they're just here for demonstration purposes
layout: BindGroupLayout,
layout_msaa: BindGroupLayout,
vertex: Handle<Shader>,
fragment: Handle<Shader>,
specialized_cache: SpecializedCache<RenderPipeline, MySpecializer>,
}
pub struct MySpecializer {