예제 #1
0
 public void ExecuteBundle(CompiledCommandList commandList)
 {
     if (currentCommandList != commandList && commandList.Builder.CommandListType == CommandListType.Bundle)
     {
         currentCommandList.NativeCommandList.ExecuteBundle(commandList.NativeCommandList);
     }
 }
예제 #2
0
        public CommandList(GraphicsDevice device, CommandListType commandListType)
        {
            GraphicsDevice  = device;
            CommandListType = commandListType;

            ID3D12CommandAllocator commandAllocator = GetCommandAllocator();

            ID3D12GraphicsCommandList nativeCommandList = GraphicsDevice.NativeDevice.CreateCommandList((Vortice.Direct3D12.CommandListType)CommandListType, commandAllocator, null);

            currentCommandList = new CompiledCommandList(this, commandAllocator, nativeCommandList);

            SetDescriptorHeaps(GraphicsDevice.ShaderVisibleShaderResourceViewAllocator, GraphicsDevice.ShaderVisibleSamplerAllocator);
        }