* Submit the command list. */
| 888 | * Submit the command list. |
| 889 | */ |
| 890 | void SubmitCommandList(D3D12Global &d3d) |
| 891 | { |
| 892 | d3d.cmdList->Close(); |
| 893 | |
| 894 | ID3D12CommandList* pGraphicsList = { d3d.cmdList }; |
| 895 | d3d.cmdQueue->ExecuteCommandLists(1, &pGraphicsList); |
| 896 | d3d.fenceValues[d3d.frameIndex]++; |
| 897 | HRESULT hr = d3d.cmdQueue->Signal(d3d.fence, d3d.fenceValues[d3d.frameIndex]); |
| 898 | Utils::Validate(hr, L"Error: failed to signal fence!"); |
| 899 | } |
| 900 | |
| 901 | /** |
| 902 | * Swap the buffers. |
no test coverage detected