File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -683,7 +683,6 @@ impl PhysicalDeviceFeatures {
683683
684684 let mut dl_flags = Df :: COMPUTE_SHADERS
685685 | Df :: BASE_VERTEX
686- | Df :: READ_ONLY_DEPTH_STENCIL
687686 | Df :: NON_POWER_OF_TWO_MIPMAPPED_TEXTURES
688687 | Df :: COMPARISON_SAMPLERS
689688 | Df :: VERTEX_STORAGE
@@ -698,6 +697,15 @@ impl PhysicalDeviceFeatures {
698697 | Df :: SHADER_F16_IN_F32
699698 | Df :: MSL2_1 ;
700699
700+ // `VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL`
701+ // and `VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL`
702+ // is required for separate read-only depth stencil.
703+ dl_flags. set (
704+ Df :: READ_ONLY_DEPTH_STENCIL ,
705+ caps. device_api_version >= vk:: API_VERSION_1_1
706+ || caps. supports_extension ( khr:: maintenance2:: NAME ) ,
707+ ) ;
708+
701709 dl_flags. set (
702710 Df :: SURFACE_VIEW_FORMATS ,
703711 caps. supports_extension ( khr:: swapchain_mutable_format:: NAME )
You can’t perform that action at this time.
0 commit comments