@@ -9,12 +9,27 @@ use wgt::{
99} ;
1010
1111use crate :: {
12- Label , api_log, binding_model:: { BindError , BindGroup , ImmediateUploadError , LateMinBufferBindingSizeMismatch } , command:: {
13- ArcCommand , BasePass , BindGroupStateChange , CommandEncoder , CommandEncoderError , DebugGroupError , EncoderStateError , EncodingState , InnerCommandEncoder , MapPassErr , PassErrorScope , PassStateError , StateChange , bind:: { Binder , BinderError } , memory_init:: { SurfacesInDiscardState , fixup_discarded_surfaces} , pass:: { self , ImmediateState , flush_bindings_helper} , pass_base, pass_try, ray_tracing_pass_commands:: ArcRayTracingCommand
14- } , device:: { Device , DeviceError , MissingDownlevelFlags , MissingFeatures } , hal_label, id, impl_resource_type, pipeline:: RayTracingPipeline , resource:: {
12+ api_log,
13+ binding_model:: { BindError , BindGroup , ImmediateUploadError , LateMinBufferBindingSizeMismatch } ,
14+ command:: {
15+ bind:: { Binder , BinderError } ,
16+ memory_init:: { fixup_discarded_surfaces, SurfacesInDiscardState } ,
17+ pass:: { self , flush_bindings_helper, ImmediateState } ,
18+ pass_base, pass_try,
19+ ray_tracing_pass_commands:: ArcRayTracingCommand ,
20+ ArcCommand , BasePass , BindGroupStateChange , CommandEncoder , CommandEncoderError ,
21+ DebugGroupError , EncoderStateError , EncodingState , InnerCommandEncoder , MapPassErr ,
22+ PassErrorScope , PassStateError , StateChange ,
23+ } ,
24+ device:: { Device , DeviceError , MissingDownlevelFlags , MissingFeatures } ,
25+ hal_label, id, impl_resource_type,
26+ pipeline:: RayTracingPipeline ,
27+ resource:: {
1528 DestroyedResourceError , InvalidOrDestroyedResourceError , InvalidResourceError , Labeled ,
1629 MissingBufferUsageError , ParentDevice ,
17- } , track:: { ResourceUsageCompatibilityError , Tracker }
30+ } ,
31+ track:: { ResourceUsageCompatibilityError , Tracker } ,
32+ Label ,
1833} ;
1934
2035pub type RayTracingBasePass = BasePass < ArcRayTracingCommand , RayTracingPassError > ;
@@ -355,7 +370,7 @@ impl<'scope, 'snatch_guard, 'cmd_enc> State<'scope, 'snatch_guard, 'cmd_enc> {
355370 /// # Differences between render and compute (from which ray tracing passes inherit functionality) passes
356371 ///
357372 /// Ray tracing pipelines behave the same as compute pipelines.
358- ///
373+ ///
359374 /// There are differences between the `flush_bindings` implementations for
360375 /// render and compute passes, because render passes have a single usage
361376 /// scope for the entire pass, and compute passes have a separate usage
0 commit comments