mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-22 15:48:56 +00:00
[vk] SurfaceType Depth/Stencil
This commit is contained in:
@@ -2554,7 +2554,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) {
|
||||
|
||||
Reference in New Issue
Block a user