File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
release-content/migration-guides Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ pub struct MyPipeline {
150
150
// explicit fields for them here. However, real-world cases
151
151
// may still need to expose them as fields to create bind groups
152
152
// from, for example.
153
- specialized_cache : SpecializedCache <RenderPipeline , MySpecializer >,
153
+ variants : SpecializedCache <RenderPipeline , MySpecializer >,
154
154
}
155
155
156
156
pub struct MySpecializer {
@@ -187,20 +187,16 @@ impl FromWorld for MyPipeline {
187
187
.. default ()
188
188
},
189
189
190
- let specialized_cache = SpecializedCache :: new (
190
+ let variants = SpecializedCache :: new (
191
191
MySpecializer {
192
192
layout : layout . clone (),
193
193
layout_msaa : layout_msaa . clone (),
194
194
},
195
- None ,
196
195
base_descriptor ,
197
196
);
198
197
199
198
Self {
200
- layout ,
201
- layout_msaa ,
202
- vertex ,
203
- fragment ,
199
+ variants
204
200
}
205
201
}
206
202
}
You can’t perform that action at this time.
0 commit comments