File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ macro_rules! impl_scope_ext {
99
99
/// Ignores passed `wgpu::RenderPassDescriptor::timestamp_writes` and replaces it with
100
100
/// `timestamp_writes` managed by `GpuProfiler` if profiling is enabled.
101
101
///
102
+ /// This also sets the `wgpu::RenderPassDescriptor::label` if it's `None` (default).
103
+ ///
102
104
/// Note that in order to take measurements, this requires the [`wgpu::Features::TIMESTAMP_QUERY`] feature.
103
105
/// [`wgpu::Features::TIMESTAMP_QUERY_INSIDE_ENCODERS`] & [`wgpu::Features::TIMESTAMP_QUERY_INSIDE_PASSES`] are not required.
104
106
#[ track_caller]
@@ -116,6 +118,7 @@ macro_rules! impl_scope_ext {
116
118
. recorder
117
119
. begin_render_pass( & wgpu:: RenderPassDescriptor {
118
120
timestamp_writes: child_scope. render_pass_timestamp_writes( ) ,
121
+ label: pass_descriptor. label. or( Some ( & child_scope. label) ) ,
119
122
..pass_descriptor
120
123
} ) ;
121
124
You can’t perform that action at this time.
0 commit comments