コード例 #1
0
 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();
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public void AddCommandList(CommandListDelegate BuildHandler,Pipeline pipeline = null)
 {
     CommandListBuildHandler += BuildHandler;
     Command C = new Command(pipeline);
     CommandPool.Add(C);
 }