Ejemplo n.º 1
0
        private SoftwareDevice(SoftwarePhysicalDevice physicalDevice, VkDeviceCreateInfo createInfo)
            : base(physicalDevice.m_Instance)
        {
            this.m_softwarePhysicalDevice = physicalDevice;
            this.m_createInfo             = createInfo;

            foreach (var item in createInfo.pQueueCreateInfos)
            {
                List <VkQueue> list = new List <VkQueue>();

                for (int i = 0; i < item.queueCount; i++)
                {
                    list.Add(new SoftwareQueue(this, item.queueFamilyIndex));
                }

                m_Queue.Add(item.queueFamilyIndex, list);
            }
        }
Ejemplo n.º 2
0
 internal static VkResult Create(SoftwarePhysicalDevice softwarePhysicalDevice, VkDeviceCreateInfo createInfo, out VkDevice device)
 {
     device = new SoftwareDevice(softwarePhysicalDevice, createInfo);
     return(VkResult.VK_SUCCESS);
 }