Пример #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);
        }