public QueueFamily(uint index, uint queueCount, QueueFamilyType type) { _index = index; _queueCount = queueCount; _type = type; _priorities = new NativeList <float>(queueCount); _priorities.Count = queueCount; for (int i = 0; i < queueCount; i++) { _priorities[i] = 1.0f / queueCount; } }
public CommandBuffer GetNewCommand( QueueFamilyType queueType, CommandType commandType ) { var type = VkCommandBufferLevel.Primary; if (commandType == CommandType.Secondary) { type = VkCommandBufferLevel.Secondary; } return(new CommandBuffer(_commandPools[queueType], type)); }