mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Add image name to depth/stencil clear draws
This commit is contained in:
@@ -2344,14 +2344,15 @@ bool WrappedVulkan::Serialise_vkCmdClearDepthStencilImage(
|
||||
AddEvent();
|
||||
|
||||
DrawcallDescription draw;
|
||||
draw.name = StringFormat::Fmt("vkCmdClearDepthStencilImage(%f, %u)", DepthStencil.depth,
|
||||
DepthStencil.stencil);
|
||||
draw.flags |= DrawFlags::Clear | DrawFlags::ClearDepthStencil;
|
||||
draw.copyDestination = GetResourceManager()->GetOriginalID(GetResID(image));
|
||||
draw.copyDestinationSubresource = Subresource();
|
||||
if(rangeCount > 0)
|
||||
draw.copyDestinationSubresource =
|
||||
Subresource(pRanges[0].baseMipLevel, pRanges[0].baseArrayLayer);
|
||||
draw.name = StringFormat::Fmt("vkCmdClearDepthStencilImage(%s, %f, %u)",
|
||||
ToStr(draw.copyDestination).c_str(), DepthStencil.depth,
|
||||
DepthStencil.stencil);
|
||||
|
||||
AddDrawcall(draw, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user