Skip to content

Commit 76ed8fd

Browse files
committed
fix migration guide
1 parent 879b362 commit 76ed8fd

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

release-content/migration-guides/composable_specialization.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ pub struct MyPipeline {
150150
// explicit fields for them here. However, real-world cases
151151
// may still need to expose them as fields to create bind groups
152152
// from, for example.
153-
specialized_cache: SpecializedCache<RenderPipeline, MySpecializer>,
153+
variants: SpecializedCache<RenderPipeline, MySpecializer>,
154154
}
155155

156156
pub struct MySpecializer {
@@ -187,20 +187,16 @@ impl FromWorld for MyPipeline {
187187
..default()
188188
},
189189

190-
let specialized_cache = SpecializedCache::new(
190+
let variants = SpecializedCache::new(
191191
MySpecializer {
192192
layout: layout.clone(),
193193
layout_msaa: layout_msaa.clone(),
194194
},
195-
None,
196195
base_descriptor,
197196
);
198197

199198
Self {
200-
layout,
201-
layout_msaa,
202-
vertex,
203-
fragment,
199+
variants
204200
}
205201
}
206202
}

0 commit comments

Comments
 (0)