MCPcopy Create free account
hub / github.com/GPUOpen-Tools/GPU-Reshape / Submit

Method Submit

Source/Backends/DX12/TestDevice/Source/Device.cpp:738–761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736}
737
738void Device::Submit(QueueID queueID, CommandBufferID commandBuffer) {
739 CommandBufferInfo& info = commandBuffers.at(commandBuffer);
740
741 // Determine the queue
742 ID3D12CommandQueue* queue{};
743 switch (queueID) {
744 case 0:
745 queue = graphicsQueue.Get();
746 break;
747 case 1:
748 queue = computeQueue.Get();
749 break;
750 case 2:
751 queue = copyQueue.Get();
752 break;
753 }
754
755 // Must be valid
756 REQUIRE(queue);
757
758 // Submit on respective queue
759 ID3D12CommandList *lists[] = {info.commandList.Get()};
760 queue->ExecuteCommandLists(1, lists);
761}
762
763void Device::InitializeResources(CommandBufferID commandBuffer) {
764 CommandBufferInfo& info = commandBuffers.at(commandBuffer);

Callers 2

SamplerIndexOOBExecutorFunction · 0.45
TextureIndexOOBExecutorFunction · 0.45

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected