[vk] SurfaceType Depth/Stencil

This commit is contained in:
CamilleLaVey 2025-12-02 01:01:24 -04:00 committed by Caio Oliveira
parent 0f62eae9e8
commit 642c91a49b
1 changed files with 3 additions and 1 deletions

View File

@ -2477,7 +2477,9 @@ bool ImageView::IsRescaled() const noexcept {
}
bool ImageView::SupportsDepthCompareSampling() const noexcept {
return (aspect_mask & VK_IMAGE_ASPECT_DEPTH_BIT) != 0;
const auto surface_type = VideoCore::Surface::GetFormatType(format);
return surface_type == VideoCore::Surface::SurfaceType::Depth ||
surface_type == VideoCore::Surface::SurfaceType::DepthStencil;
}
vk::ImageView ImageView::MakeView(VkFormat vk_format, VkImageAspectFlags aspect_mask) {