mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-07 19:23:14 +00:00
renderer_vulkan: Simplify debug marker settings. (#2159)
* renderer_vulkan: Simplify debug marker settings. * liverpool: Add scope markers for graphics/compute queues. * liverpool: Remove unneeded extra label from command buffer markers. * vk_rasterizer: Add scopes around filtered draw passes.
This commit is contained in:
parent
1c3048ccc2
commit
b3739bea92
14 changed files with 132 additions and 98 deletions
|
@ -110,6 +110,13 @@ ImageView::ImageView(const Vulkan::Instance& instance, const ImageViewInfo& info
|
|||
ASSERT_MSG(view_result == vk::Result::eSuccess, "Failed to create image view: {}",
|
||||
vk::to_string(view_result));
|
||||
image_view = std::move(view);
|
||||
|
||||
const auto view_aspect = aspect & vk::ImageAspectFlagBits::eDepth ? "Depth"
|
||||
: aspect & vk::ImageAspectFlagBits::eStencil ? "Stencil"
|
||||
: "Color";
|
||||
Vulkan::SetObjectName(instance.GetDevice(), *image_view, "ImageView {}x{}x{} {:#x}:{:#x} ({})",
|
||||
image.info.size.width, image.info.size.height, image.info.size.depth,
|
||||
image.info.guest_address, image.info.guest_size, view_aspect);
|
||||
}
|
||||
|
||||
ImageView::~ImageView() = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue