1
1
use std:: iter;
2
2
3
- use crate :: ray_tracing:: AsBuildContext ;
3
+ use crate :: ray_tracing:: { acceleration_structure_limits , AsBuildContext } ;
4
4
use wgpu:: util:: { BufferInitDescriptor , DeviceExt } ;
5
5
use wgpu:: * ;
6
6
use wgpu_test:: {
@@ -12,6 +12,7 @@ static UNBUILT_BLAS: GpuTestConfiguration = GpuTestConfiguration::new()
12
12
. parameters (
13
13
TestParameters :: default ( )
14
14
. test_features_limits ( )
15
+ . limits ( acceleration_structure_limits ( ) )
15
16
. features ( wgpu:: Features :: EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE )
16
17
// https://github.com/gfx-rs/wgpu/issues/6727
17
18
. skip ( FailureCase :: backend_adapter ( wgpu:: Backends :: VULKAN , "AMD" ) ) ,
@@ -46,6 +47,7 @@ static UNBUILT_BLAS_COMPACTION: GpuTestConfiguration = GpuTestConfiguration::new
46
47
. parameters (
47
48
TestParameters :: default ( )
48
49
. test_features_limits ( )
50
+ . limits ( acceleration_structure_limits ( ) )
49
51
. features ( wgpu:: Features :: EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE )
50
52
// https://github.com/gfx-rs/wgpu/issues/6727
51
53
. skip ( FailureCase :: backend_adapter ( wgpu:: Backends :: VULKAN , "AMD" ) ) ,
@@ -74,6 +76,7 @@ static BLAS_COMPACTION_WITHOUT_FLAGS: GpuTestConfiguration = GpuTestConfiguratio
74
76
. parameters (
75
77
TestParameters :: default ( )
76
78
. test_features_limits ( )
79
+ . limits ( acceleration_structure_limits ( ) )
77
80
. features ( wgpu:: Features :: EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE )
78
81
// https://github.com/gfx-rs/wgpu/issues/6727
79
82
. skip ( FailureCase :: backend_adapter ( wgpu:: Backends :: VULKAN , "AMD" ) ) ,
@@ -110,6 +113,7 @@ static UNPREPARED_BLAS_COMPACTION: GpuTestConfiguration = GpuTestConfiguration::
110
113
. parameters (
111
114
TestParameters :: default ( )
112
115
. test_features_limits ( )
116
+ . limits ( acceleration_structure_limits ( ) )
113
117
. features ( wgpu:: Features :: EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE )
114
118
// https://github.com/gfx-rs/wgpu/issues/6727
115
119
. skip ( FailureCase :: backend_adapter ( wgpu:: Backends :: VULKAN , "AMD" ) ) ,
@@ -139,6 +143,7 @@ static BLAS_COMPACTION: GpuTestConfiguration = GpuTestConfiguration::new()
139
143
. parameters (
140
144
TestParameters :: default ( )
141
145
. test_features_limits ( )
146
+ . limits ( acceleration_structure_limits ( ) )
142
147
. features ( wgpu:: Features :: EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE )
143
148
// https://github.com/gfx-rs/wgpu/issues/6727
144
149
. skip ( FailureCase :: backend_adapter ( wgpu:: Backends :: VULKAN , "AMD" ) ) ,
@@ -197,6 +202,7 @@ static OUT_OF_ORDER_AS_BUILD: GpuTestConfiguration = GpuTestConfiguration::new()
197
202
. parameters (
198
203
TestParameters :: default ( )
199
204
. test_features_limits ( )
205
+ . limits ( acceleration_structure_limits ( ) )
200
206
. features ( wgpu:: Features :: EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE )
201
207
// https://github.com/gfx-rs/wgpu/issues/6727
202
208
. skip ( FailureCase :: backend_adapter ( wgpu:: Backends :: VULKAN , "AMD" ) ) ,
@@ -280,6 +286,7 @@ static OUT_OF_ORDER_AS_BUILD_USE: GpuTestConfiguration = GpuTestConfiguration::n
280
286
. parameters (
281
287
TestParameters :: default ( )
282
288
. test_features_limits ( )
289
+ . limits ( acceleration_structure_limits ( ) )
283
290
. features (
284
291
wgpu:: Features :: EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE
285
292
| wgpu:: Features :: EXPERIMENTAL_RAY_QUERY ,
@@ -466,6 +473,7 @@ static EMPTY_BUILD: GpuTestConfiguration = GpuTestConfiguration::new()
466
473
. parameters (
467
474
TestParameters :: default ( )
468
475
. test_features_limits ( )
476
+ . limits ( acceleration_structure_limits ( ) )
469
477
. features ( wgpu:: Features :: EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE ) ,
470
478
)
471
479
. run_sync ( empty_build) ;
@@ -486,6 +494,7 @@ static BUILD_WITH_TRANSFORM: GpuTestConfiguration = GpuTestConfiguration::new()
486
494
. parameters (
487
495
TestParameters :: default ( )
488
496
. test_features_limits ( )
497
+ . limits ( acceleration_structure_limits ( ) )
489
498
. features ( wgpu:: Features :: EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE )
490
499
// https://github.com/gfx-rs/wgpu/issues/6727
491
500
. skip ( FailureCase :: backend_adapter ( wgpu:: Backends :: VULKAN , "AMD" ) ) ,
@@ -572,6 +581,7 @@ static ONLY_BLAS_VERTEX_RETURN: GpuTestConfiguration = GpuTestConfiguration::new
572
581
. parameters (
573
582
TestParameters :: default ( )
574
583
. test_features_limits ( )
584
+ . limits ( acceleration_structure_limits ( ) )
575
585
. features (
576
586
wgpu:: Features :: EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE
577
587
| wgpu:: Features :: EXPERIMENTAL_RAY_QUERY
@@ -698,6 +708,7 @@ static ONLY_TLAS_VERTEX_RETURN: GpuTestConfiguration = GpuTestConfiguration::new
698
708
. parameters (
699
709
TestParameters :: default ( )
700
710
. test_features_limits ( )
711
+ . limits ( acceleration_structure_limits ( ) )
701
712
. features (
702
713
wgpu:: Features :: EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE
703
714
| wgpu:: Features :: EXPERIMENTAL_RAY_QUERY
@@ -739,6 +750,7 @@ static EXTRA_FORMAT_BUILD: GpuTestConfiguration = GpuTestConfiguration::new()
739
750
. parameters (
740
751
TestParameters :: default ( )
741
752
. test_features_limits ( )
753
+ . limits ( acceleration_structure_limits ( ) )
742
754
. features (
743
755
wgpu:: Features :: EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE
744
756
| wgpu:: Features :: EXTENDED_ACCELERATION_STRUCTURE_VERTEX_FORMATS ,
@@ -753,6 +765,7 @@ static MISALIGNED_BUILD: GpuTestConfiguration = GpuTestConfiguration::new()
753
765
. parameters (
754
766
TestParameters :: default ( )
755
767
. test_features_limits ( )
768
+ . limits ( acceleration_structure_limits ( ) )
756
769
. features ( wgpu:: Features :: EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE )
757
770
// https://github.com/gfx-rs/wgpu/issues/6727
758
771
. skip ( FailureCase :: backend_adapter ( wgpu:: Backends :: VULKAN , "AMD" ) ) ,
@@ -765,6 +778,7 @@ static TOO_SMALL_STRIDE_BUILD: GpuTestConfiguration = GpuTestConfiguration::new(
765
778
. parameters (
766
779
TestParameters :: default ( )
767
780
. test_features_limits ( )
781
+ . limits ( acceleration_structure_limits ( ) )
768
782
. features ( wgpu:: Features :: EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE )
769
783
// https://github.com/gfx-rs/wgpu/issues/6727
770
784
. skip ( FailureCase :: backend_adapter ( wgpu:: Backends :: VULKAN , "AMD" ) ) ,
0 commit comments