gfx icon indicating copy to clipboard operation
gfx copied to clipboard

Improve DX12 command list naming

Open yzsolt opened this issue 5 years ago • 1 comments

(Follow up of https://github.com/gfx-rs/gfx/pull/3499)

Although the DX12 backend sets the debug name of CommandBuffers by calling SetName on the underlying GraphicsCommandList, it doesn't show up in the tested graphics debuggers (RenderDoc, PIX). Baldur Karlsson (RenderDoc author) explained why:

command buffers are inherently transient, and the lifetime of when exactly the name should be applied is a little unclear. They are better annotated using markers rather than names, if you want to have a global name for the command buffer you could insert it as a marker as the first command

Markers are already set by the DX12 backend to mark bound descriptor sets, so the initial pieces are there if we want to take this route.

yzsolt avatar Dec 03 '20 11:12 yzsolt

the lifetime of when exactly the name should be applied is a little unclear

I don't know why Baldur finds this unclear. To me, it's as clear as Vulkan command buffers. They also go through the reset/recording/finished cycle.

kvark avatar Dec 03 '20 15:12 kvark