public void ExecuteBundle(CompiledCommandList commandList) { if (currentCommandList != commandList && commandList.Builder.CommandListType == CommandListType.Bundle) { currentCommandList.NativeCommandList.ExecuteBundle(commandList.NativeCommandList); } }
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); }