[GPU] Store an EDRAM snapshot in traces
This commit is contained in:
@@ -38,6 +38,15 @@ void DeferredCommandList::Execute(ID3D12GraphicsCommandList* command_list,
|
||||
stream += header_size;
|
||||
stream_remaining -= header_size;
|
||||
switch (Command(header[0])) {
|
||||
case Command::kD3DClearUnorderedAccessViewUint: {
|
||||
auto& args =
|
||||
*reinterpret_cast<const ClearUnorderedAccessViewHeader*>(stream);
|
||||
command_list->ClearUnorderedAccessViewUint(
|
||||
args.view_gpu_handle_in_current_heap, args.view_cpu_handle,
|
||||
args.resource, args.values_uint, args.num_rects,
|
||||
args.num_rects ? reinterpret_cast<const D3D12_RECT*>(&args + 1)
|
||||
: nullptr);
|
||||
} break;
|
||||
case Command::kD3DCopyBufferRegion: {
|
||||
auto& args =
|
||||
*reinterpret_cast<const D3DCopyBufferRegionArguments*>(stream);
|
||||
|
||||
Reference in New Issue
Block a user