Example #1
0
 protected override void ExecuteCommandListsImpl(RendererAbstract.CommandSubmission.CommandList[] commandLists)
 {
     using (var commandListsDX12 = new ComArray<SharpDX.Direct3D12.CommandList>(commandLists.Length))
     {
         for (int index = 0; index < commandListsDX12.Length; ++index)
         {
             commandListsDX12[index] = ((RendererDX12.CommandSubmission.CommandList)commandLists[index])?.CommandListD3D12;
         }
         CommandQueueD3D12.ExecuteCommandLists(commandListsDX12.Length, commandListsDX12);
     }
 }
Example #2
0
 internal SwapChain(ref Descriptor desc, RendererAbstract.Device device, string label)
     : base(ref desc, device, label)
 {
 }
Example #3
0
 protected override void CreateFromSwapChainImpl(RendererAbstract.SwapChain swapChain, uint backbufferIndex)
 {
     ResourceD3D12 = ((SwapChainDX) swapChain).SwapChainDXGI.GetBackBuffer<SharpDX.Direct3D12.Resource>((int) backbufferIndex);
 }
Example #4
0
 internal DescriptorHeap(ref Descriptor desc, RendererAbstract.Device device, string label)
     : base(ref desc, device, label)
 {
 }
Example #5
0
 internal CommandList(ref Descriptor desc, RendererAbstract.Device device, string label)
     : base(ref desc, device, label)
 {
 }