diff options
Diffstat (limited to 'runtime/shims/d3d12_com.cpp')
| -rw-r--r-- | runtime/shims/d3d12_com.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/shims/d3d12_com.cpp b/runtime/shims/d3d12_com.cpp index 7b4223384..155e1e1e8 100644 --- a/runtime/shims/d3d12_com.cpp +++ b/runtime/shims/d3d12_com.cpp | |||
| @@ -247,6 +247,7 @@ public: | |||
| 247 | // Root signatures, pipeline state and root arguments. The arguments are packed into the 32 user-data dwords | 247 | // Root signatures, pipeline state and root arguments. The arguments are packed into the 32 user-data dwords |
| 248 | // the translated shaders read (root_signature.h; docs section 3.5); a draw or dispatch records a copy. | 248 | // the translated shaders read (root_signature.h; docs section 3.5); a draw or dispatch records a copy. |
| 249 | void STDMETHODCALLTYPE SetComputeRootSignature(ID3D12RootSignature* signature) override { | 249 | void STDMETHODCALLTYPE SetComputeRootSignature(ID3D12RootSignature* signature) override { |
| 250 | d3d12_trace::record("ID3D12GraphicsCommandList::SetComputeRootSignature"); | ||
| 250 | bind_root(compute_, signature); | 251 | bind_root(compute_, signature); |
| 251 | } | 252 | } |
| 252 | void STDMETHODCALLTYPE SetGraphicsRootSignature(ID3D12RootSignature* signature) override { | 253 | void STDMETHODCALLTYPE SetGraphicsRootSignature(ID3D12RootSignature* signature) override { |
| @@ -304,6 +305,7 @@ public: | |||
| 304 | } | 305 | } |
| 305 | 306 | ||
| 306 | void STDMETHODCALLTYPE Dispatch(UINT x, UINT y, UINT z) override { | 307 | void STDMETHODCALLTYPE Dispatch(UINT x, UINT y, UINT z) override { |
| 308 | d3d12_trace::record("ID3D12GraphicsCommandList::Dispatch"); | ||
| 307 | if (defer([=](GraphicsCommandList& l) { l.record_dispatch(x, y, z); }, true)) return; | 309 | if (defer([=](GraphicsCommandList& l) { l.record_dispatch(x, y, z); }, true)) return; |
| 308 | record_dispatch(x, y, z); | 310 | record_dispatch(x, y, z); |
| 309 | } | 311 | } |