@@ -656,7 +656,7 @@ pub struct CommandBufferMutable {
656
656
debug_scope_depth : u32 ,
657
657
658
658
#[ cfg( feature = "trace" ) ]
659
- pub ( crate ) commands : Option < Vec < TraceCommand > > ,
659
+ pub ( crate ) trace_commands : Option < Vec < TraceCommand > > ,
660
660
}
661
661
662
662
impl CommandBufferMutable {
@@ -729,7 +729,7 @@ impl CommandEncoder {
729
729
crate :: indirect_validation:: DrawResources :: new ( device. clone ( ) ) ,
730
730
debug_scope_depth : 0 ,
731
731
#[ cfg( feature = "trace" ) ]
732
- commands : if device. trace . lock ( ) . is_some ( ) {
732
+ trace_commands : if device. trace . lock ( ) . is_some ( ) {
733
733
Some ( Vec :: new ( ) )
734
734
} else {
735
735
None
@@ -1225,7 +1225,7 @@ impl Global {
1225
1225
cmd_buf_data. debug_scope_depth += 1 ;
1226
1226
1227
1227
#[ cfg( feature = "trace" ) ]
1228
- if let Some ( ref mut list) = cmd_buf_data. commands {
1228
+ if let Some ( ref mut list) = cmd_buf_data. trace_commands {
1229
1229
list. push ( TraceCommand :: PushDebugGroup ( label. to_owned ( ) ) ) ;
1230
1230
}
1231
1231
@@ -1260,7 +1260,7 @@ impl Global {
1260
1260
let mut cmd_buf_data = cmd_enc. data . lock ( ) ;
1261
1261
cmd_buf_data. record_with ( |cmd_buf_data| -> Result < ( ) , CommandEncoderError > {
1262
1262
#[ cfg( feature = "trace" ) ]
1263
- if let Some ( ref mut list) = cmd_buf_data. commands {
1263
+ if let Some ( ref mut list) = cmd_buf_data. trace_commands {
1264
1264
list. push ( TraceCommand :: InsertDebugMarker ( label. to_owned ( ) ) ) ;
1265
1265
}
1266
1266
@@ -1299,7 +1299,7 @@ impl Global {
1299
1299
cmd_buf_data. debug_scope_depth -= 1 ;
1300
1300
1301
1301
#[ cfg( feature = "trace" ) ]
1302
- if let Some ( ref mut list) = cmd_buf_data. commands {
1302
+ if let Some ( ref mut list) = cmd_buf_data. trace_commands {
1303
1303
list. push ( TraceCommand :: PopDebugGroup ) ;
1304
1304
}
1305
1305
0 commit comments