File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -610,7 +610,7 @@ impl super::PrivateCapabilities {
610610 } ,
611611 msaa_apple7 : family_check && device. supports_family ( MTLGPUFamily :: Apple7 ) ,
612612 resource_heaps : Self :: supports_any ( device, RESOURCE_HEAP_SUPPORT ) ,
613- argument_buffers : Self :: supports_any ( device, ARGUMENT_BUFFER_SUPPORT ) ,
613+ argument_buffers : device. argument_buffers_support ( ) ,
614614 shared_textures : !os_is_mac,
615615 mutable_comparison_samplers : Self :: supports_any (
616616 device,
@@ -907,7 +907,9 @@ impl super::PrivateCapabilities {
907907 | F :: SAMPLED_TEXTURE_AND_STORAGE_BUFFER_ARRAY_NON_UNIFORM_INDEXING
908908 | F :: UNIFORM_BUFFER_AND_STORAGE_TEXTURE_ARRAY_NON_UNIFORM_INDEXING
909909 | F :: PARTIALLY_BOUND_BINDING_ARRAY ,
910- self . msl_version >= MTLLanguageVersion :: V3_0 && self . supports_arrays_of_textures ,
910+ self . msl_version >= MTLLanguageVersion :: V3_0
911+ && self . supports_arrays_of_textures
912+ && self . argument_buffers as u64 >= metal:: MTLArgumentBuffersTier :: Tier2 as u64 ,
911913 ) ;
912914 features. set (
913915 F :: SHADER_INT64 ,
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ struct PrivateCapabilities {
200200 msaa_apple3 : bool ,
201201 msaa_apple7 : bool ,
202202 resource_heaps : bool ,
203- argument_buffers : bool ,
203+ argument_buffers : metal :: MTLArgumentBuffersTier ,
204204 shared_textures : bool ,
205205 mutable_comparison_samplers : bool ,
206206 sampler_clamp_to_border : bool ,
You can’t perform that action at this time.
0 commit comments