mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-09 13:19:00 +00:00
Adjust 'image view type' error log (#3517)
* Adjust 'image view type' error log * +
This commit is contained in:
@@ -9,6 +9,8 @@
|
|||||||
#include "video_core/texture_cache/image.h"
|
#include "video_core/texture_cache/image.h"
|
||||||
#include "video_core/texture_cache/image_view.h"
|
#include "video_core/texture_cache/image_view.h"
|
||||||
|
|
||||||
|
#include <magic_enum/magic_enum.hpp>
|
||||||
|
|
||||||
namespace VideoCore {
|
namespace VideoCore {
|
||||||
|
|
||||||
vk::ImageViewType ConvertImageViewType(AmdGpu::ImageType type) {
|
vk::ImageViewType ConvertImageViewType(AmdGpu::ImageType type) {
|
||||||
@@ -125,7 +127,7 @@ ImageView::ImageView(const Vulkan::Instance& instance, const ImageViewInfo& info
|
|||||||
};
|
};
|
||||||
if (!IsViewTypeCompatible(info.type, image.info.type)) {
|
if (!IsViewTypeCompatible(info.type, image.info.type)) {
|
||||||
LOG_ERROR(Render_Vulkan, "image view type {} is incompatible with image type {}",
|
LOG_ERROR(Render_Vulkan, "image view type {} is incompatible with image type {}",
|
||||||
vk::to_string(image_view_ci.viewType), vk::to_string(image_view_ci.viewType));
|
magic_enum::enum_name(info.type), magic_enum::enum_name(image.info.type));
|
||||||
}
|
}
|
||||||
|
|
||||||
auto [view_result, view] = instance.GetDevice().createImageViewUnique(image_view_ci);
|
auto [view_result, view] = instance.GetDevice().createImageViewUnique(image_view_ci);
|
||||||
|
|||||||
Reference in New Issue
Block a user