mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-15 02:11:22 +00:00
Refuse to read contents of AS buffers on D3D12
This commit is contained in:
1 file changed
+4
@@ -2154,6 +2154,10 @@ void D3D12DebugManager::GetBufferData(ID3D12Resource *buffer, uint64_t offset, u
|
||||
|
||||
ret.resize((size_t)length);
|
||||
|
||||
WrappedID3D12Resource *wrapped = (WrappedID3D12Resource *)buffer;
|
||||
if(wrapped->IsAccelerationStructureResource())
|
||||
return;
|
||||
|
||||
// directly CPU mappable (and possibly invalid to transition and copy from), so just memcpy
|
||||
if(heapProps.Type == D3D12_HEAP_TYPE_UPLOAD || heapProps.Type == D3D12_HEAP_TYPE_READBACK)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user