mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 08:26:50 +00:00
Add custom D3D12 interface for per-heap descriptor naming by index
This commit is contained in:
@@ -19,7 +19,23 @@ RenderDoc has initial support for D3D12, but it contains some caveats. In additi
|
||||
|
||||
* RenderDoc assumes that even if multiple GPUs are present, that only one will be used - i.e. NodeMask is always 0. Multiple queues are supported.
|
||||
* RenderDoc captures may not be portable between different systems, only currently supporting capture and replay on the same or similar enough machines.
|
||||
* Shader debugging is not supported for DXIL shaders.
|
||||
|
||||
RenderDoc extensions
|
||||
--------------------
|
||||
|
||||
On D3D12 there is a RenderDoc extension provided with this interface, queried from an ``ID3D12DescriptorHeap``:
|
||||
|
||||
.. highlight:: c++
|
||||
.. code:: c++
|
||||
|
||||
MIDL_INTERFACE("52528c37-bfd9-4bbb-99ff-fdb7188619ce")
|
||||
IRenderDocDescriptorNamer : public IUnknown
|
||||
{
|
||||
public:
|
||||
virtual HRESULT STDMETHODCALLTYPE SetName(UINT DescriptorIndex, LPCSTR Name) = 0;
|
||||
};
|
||||
|
||||
This interface allows you to set a custom name for descriptors, if using SM6.6 style ``ResourceDescriptorHeap[]`` access for better debugging.
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
||||
@@ -168,6 +168,22 @@ In Vulkan you can enable the ``VK_EXT_debug_utils`` extension, which is provided
|
||||
nameInfo.pObjectName = "Off-screen color framebuffer";
|
||||
vkSetDebugUtilsObjectNameEXT(device, &nameInfo);
|
||||
|
||||
On D3D12 there is a RenderDoc extension provided with this interface, queried from an ``ID3D12DescriptorHeap``:
|
||||
|
||||
.. highlight:: c++
|
||||
.. code:: c++
|
||||
|
||||
MIDL_INTERFACE("52528c37-bfd9-4bbb-99ff-fdb7188619ce")
|
||||
IRenderDocDescriptorNamer : public IUnknown
|
||||
{
|
||||
public:
|
||||
virtual HRESULT STDMETHODCALLTYPE SetName(UINT DescriptorIndex, LPCSTR Name) = 0;
|
||||
};
|
||||
|
||||
|
||||
This interface allows you to set a custom name for descriptors, if using SM6.6 style ``ResourceDescriptorHeap[]`` access for better debugging.
|
||||
|
||||
|
||||
Bookmarks
|
||||
---------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user