@@ -58,41 +58,37 @@ static PARTIAL_BINDING_ARRAY_UNIFORM_BUFFERS: GpuTestConfiguration = GpuTestConf
5858
5959#[ gpu_test]
6060static BINDING_ARRAY_STORAGE_BUFFERS : GpuTestConfiguration = GpuTestConfiguration :: new ( )
61- . parameters (
62- TestParameters :: default ( )
63- . instance_flags ( wgpu:: InstanceFlags :: GPU_BASED_VALIDATION )
64- . features (
65- Features :: BUFFER_BINDING_ARRAY
66- | Features :: STORAGE_RESOURCE_BINDING_ARRAY
67- | Features :: SAMPLED_TEXTURE_AND_STORAGE_BUFFER_ARRAY_NON_UNIFORM_INDEXING ,
68- )
69- . limits ( Limits {
70- max_binding_array_elements_per_shader_stage : 17 ,
71- ..Limits :: default ( )
72- } )
73- // See https://github.com/gfx-rs/wgpu/issues/6745.
74- . expect_fail ( FailureCase :: molten_vk ( ) ) ,
75- )
61+ . parameters ( TestParameters {
62+ required_instance_flags : wgpu:: InstanceFlags :: GPU_BASED_VALIDATION ,
63+ required_features : Features :: BUFFER_BINDING_ARRAY
64+ | Features :: STORAGE_RESOURCE_BINDING_ARRAY
65+ | Features :: SAMPLED_TEXTURE_AND_STORAGE_BUFFER_ARRAY_NON_UNIFORM_INDEXING ,
66+ required_limits : Limits {
67+ max_binding_array_elements_per_shader_stage : 17 ,
68+ ..Limits :: default ( )
69+ } ,
70+ // See https://github.com/gfx-rs/wgpu/issues/6745.
71+ failures : FailureCase :: mac_vulkan ( |case| case. panic ( "bad SPIR-V wrapper struct inference" ) ) ,
72+ ..Default :: default ( )
73+ } )
7674 . run_async ( |ctx| async move { binding_array_buffers ( ctx, BufferType :: Storage , false ) . await } ) ;
7775
7876#[ gpu_test]
7977static PARTIAL_BINDING_ARRAY_STORAGE_BUFFERS : GpuTestConfiguration = GpuTestConfiguration :: new ( )
80- . parameters (
81- TestParameters :: default ( )
82- . instance_flags ( wgpu:: InstanceFlags :: GPU_BASED_VALIDATION )
83- . features (
84- Features :: BUFFER_BINDING_ARRAY
85- | Features :: PARTIALLY_BOUND_BINDING_ARRAY
86- | Features :: STORAGE_RESOURCE_BINDING_ARRAY
87- | Features :: SAMPLED_TEXTURE_AND_STORAGE_BUFFER_ARRAY_NON_UNIFORM_INDEXING ,
88- )
89- . limits ( Limits {
90- max_binding_array_elements_per_shader_stage : 33 ,
91- ..Limits :: default ( )
92- } )
93- // See https://github.com/gfx-rs/wgpu/issues/6745.
94- . expect_fail ( FailureCase :: molten_vk ( ) ) ,
95- )
78+ . parameters ( TestParameters {
79+ required_instance_flags : wgpu:: InstanceFlags :: GPU_BASED_VALIDATION ,
80+ required_features : Features :: BUFFER_BINDING_ARRAY
81+ | Features :: PARTIALLY_BOUND_BINDING_ARRAY
82+ | Features :: STORAGE_RESOURCE_BINDING_ARRAY
83+ | Features :: SAMPLED_TEXTURE_AND_STORAGE_BUFFER_ARRAY_NON_UNIFORM_INDEXING ,
84+ required_limits : Limits {
85+ max_binding_array_elements_per_shader_stage : 33 ,
86+ ..Limits :: default ( )
87+ } ,
88+ // See https://github.com/gfx-rs/wgpu/issues/6745.
89+ failures : FailureCase :: mac_vulkan ( |case| case. panic ( "bad SPIR-V wrapper struct inference" ) ) ,
90+ ..Default :: default ( )
91+ } )
9692 . run_async ( |ctx| async move { binding_array_buffers ( ctx, BufferType :: Storage , true ) . await } ) ;
9793
9894enum BufferType {
0 commit comments