@@ -112,7 +112,7 @@ impl Example {
112
112
sample_count,
113
113
dimension : wgpu:: TextureDimension :: D2 ,
114
114
format : config. view_formats [ 0 ] ,
115
- usage : wgpu:: TextureUsages :: RENDER_ATTACHMENT | wgpu :: TextureUsages :: TRANSIENT ,
115
+ usage : wgpu:: TextureUsages :: RENDER_ATTACHMENT ,
116
116
label : None ,
117
117
view_formats : & [ ] ,
118
118
} ;
@@ -128,10 +128,6 @@ impl crate::framework::Example for Example {
128
128
wgpu:: Features :: TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES
129
129
}
130
130
131
- fn required_features ( ) -> wgpu:: Features {
132
- wgpu:: Features :: TRANSIENT_ATTACHMENTS
133
- }
134
-
135
131
fn init (
136
132
config : & wgpu:: SurfaceConfiguration ,
137
133
_adapter : & wgpu:: Adapter ,
@@ -218,17 +214,6 @@ impl crate::framework::Example for Example {
218
214
}
219
215
}
220
216
221
- fn resize (
222
- & mut self ,
223
- config : & wgpu:: SurfaceConfiguration ,
224
- device : & wgpu:: Device ,
225
- _queue : & wgpu:: Queue ,
226
- ) {
227
- self . config = config. clone ( ) ;
228
- self . multisampled_framebuffer =
229
- Example :: create_multisampled_framebuffer ( device, config, self . sample_count ) ;
230
- }
231
-
232
217
#[ expect( clippy:: single_match) ]
233
218
fn update ( & mut self , event : winit:: event:: WindowEvent ) {
234
219
match event {
@@ -261,6 +246,17 @@ impl crate::framework::Example for Example {
261
246
}
262
247
}
263
248
249
+ fn resize (
250
+ & mut self ,
251
+ config : & wgpu:: SurfaceConfiguration ,
252
+ device : & wgpu:: Device ,
253
+ _queue : & wgpu:: Queue ,
254
+ ) {
255
+ self . config = config. clone ( ) ;
256
+ self . multisampled_framebuffer =
257
+ Example :: create_multisampled_framebuffer ( device, config, self . sample_count ) ;
258
+ }
259
+
264
260
fn render ( & mut self , view : & wgpu:: TextureView , device : & wgpu:: Device , queue : & wgpu:: Queue ) {
265
261
if self . rebuild_bundle {
266
262
self . bundle = Example :: create_bundle (
0 commit comments