public CommandListSingleAllocationPolicy(CommandListType type, Device device) { var allocatorDesc = new CommandAllocator.Descriptor() {Type = type}; Allocator = device.Create(ref allocatorDesc); Allocator.AddRef(); }
/// <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>");