MCPcopy Create free account
hub / github.com/Apress/Ray-Tracing-Gems-II / SubmitCommandList

Function SubmitCommandList

Chapter_14/src/Graphics.cpp:890–899  ·  view source on GitHub ↗

* Submit the command list. */

Source from the content-addressed store, hash-verified

888* Submit the command list.
889*/
890void 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.

Callers 1

BuildCommandListFunction · 0.85

Calls 1

ValidateFunction · 0.85

Tested by

no test coverage detected