Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
        public CommandBuffer GetNewCommand(
            QueueFamilyType queueType,
            CommandType commandType
            )
        {
            var type = VkCommandBufferLevel.Primary;

            if (commandType == CommandType.Secondary)
            {
                type = VkCommandBufferLevel.Secondary;
            }

            return(new CommandBuffer(_commandPools[queueType], type));
        }