public CommandListSingleAllocationPolicy(CommandListType type, Device device)
 {
     var allocatorDesc = new CommandAllocator.Descriptor() {Type = type};
     Allocator = device.Create(ref allocatorDesc);
     Allocator.AddRef();
 }
Example #2
0
 /// <summary>
 /// Creates a CommandAllocator. Usually not needed, since this is done by the CommandListAllocaionPolicy.
 /// </summary>
 public abstract CommandAllocator Create(ref CommandAllocator.Descriptor desc, string label = "<unnamed commandAllocator>");