Browse Source
[vk] SurfaceType Depth/Stencil
eds-true-adreno-fixes
CamilleLaVey
3 weeks ago
committed by
Caio Oliveira
No known key found for this signature in database
GPG Key ID: AAAE6C7FD4186B0C
1 changed files with
3 additions and
1 deletions
-
src/video_core/renderer_vulkan/vk_texture_cache.cpp
|
|
@ -2477,7 +2477,9 @@ bool ImageView::IsRescaled() const noexcept { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
bool ImageView::SupportsDepthCompareSampling() 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) { |
|
|
vk::ImageView ImageView::MakeView(VkFormat vk_format, VkImageAspectFlags aspect_mask) { |
|
|
|