Exemplo n.º 1
0
        public override VkResult CreateImage(VkImageCreateInfo pCreateInfo, out VkImage pImage)
        {
            VkResult result;

            pImage = SoftwareImage.CreateImage(this, pCreateInfo, out result);
            return(result);
        }
Exemplo n.º 2
0
        public static VkResult Create(SoftwareDevice device, VkSwapchainCreateInfoKHR createInfo, out VkSwapchainKHR swapChain)
        {
            SoftwareSwapchain retVal = new SoftwareSwapchain(device, createInfo);

            retVal.m_Images.Clear();

            while (retVal.m_Images.Count < createInfo.minImageCount)
            {
                VkResult      resultCode;
                SoftwareImage image = SoftwareImage.CreateSwapchainImage(device, createInfo, out resultCode);
                if (resultCode != VkResult.VK_SUCCESS)
                {
                    swapChain = default(VkSwapchainKHR);
                    return(resultCode);
                }
                retVal.m_Images.Add(image);
            }

            swapChain = retVal;
            return(VkResult.VK_SUCCESS);
        }
Exemplo n.º 3
0
 internal SoftwareImageView(SoftwareDevice device, VkImageViewCreateInfo createInfo)
 {
     this.m_device     = device;
     this.m_createInfo = createInfo;
     this.m_image      = (SoftwareImage)createInfo.image;
 }