public Command(Pipeline pipeline = null) { Allocator = Engine.Instance.Core.Device.CreateCommandAllocator(CommandListType.Direct); CommandList = Engine.Instance.Core.Device.CreateCommandList(CommandListType.Direct, Allocator, pipeline==null?null:pipeline.State); CommandList.Close(); }
private bool Add(string name, GraphicsPipelineStateDescription description) { Pipeline pipeline = new Pipeline(); pipeline.Description = description; pipeline.State = Engine.Instance.Core.Device.CreateGraphicsPipelineState(description); return Pipelines.TryAdd(name, pipeline); }
public void AddCommandList(CommandListDelegate BuildHandler,Pipeline pipeline = null) { CommandListBuildHandler += BuildHandler; Command C = new Command(pipeline); CommandPool.Add(C); }