@@ -28,7 +28,9 @@ use crate::{
28
28
use thiserror:: Error ;
29
29
use wgt:: { BufferAddress , DynamicOffset } ;
30
30
31
- use super :: { bind:: BinderError , memory_init:: CommandBufferTextureMemoryActions } ;
31
+ use super :: {
32
+ bind:: BinderError , memory_init:: CommandBufferTextureMemoryActions , SimplifiedQueryType ,
33
+ } ;
32
34
use crate :: ray_tracing:: TlasAction ;
33
35
use std:: sync:: Arc ;
34
36
use std:: { fmt, mem:: size_of, str} ;
@@ -309,6 +311,12 @@ impl Global {
309
311
} ;
310
312
311
313
arc_desc. timestamp_writes = if let Some ( tw) = desc. timestamp_writes {
314
+ let & PassTimestampWrites {
315
+ query_set,
316
+ beginning_of_pass_write_index : _,
317
+ end_of_pass_write_index : _,
318
+ } = tw;
319
+
312
320
match cmd_buf
313
321
. device
314
322
. require_features ( wgt:: Features :: TIMESTAMP_QUERY )
@@ -317,7 +325,7 @@ impl Global {
317
325
Err ( e) => return make_err ( e. into ( ) , arc_desc) ,
318
326
}
319
327
320
- let query_set = match hub. query_sets . get ( tw . query_set ) . get ( ) {
328
+ let query_set = match hub. query_sets . get ( query_set) . get ( ) {
321
329
Ok ( query_set) => query_set,
322
330
Err ( e) => return make_err ( e. into ( ) , arc_desc) ,
323
331
} ;
0 commit comments