Ejemplo n.º 1
0
        public SoftwareDescriptorSet(SoftwareDescriptorPool descriptorPool, SoftwareDescriptorSetLayout layout)
        {
            this.m_descriptorPool      = descriptorPool;
            this.m_descriptorSetLayout = layout;
            this.m_createInfo          = layout.m_createInfo;

            m_Bindings   = new VkDescriptorSetLayoutBinding[m_createInfo.bindingCount];
            m_BufferInfo = new VkDescriptorBufferInfo[m_createInfo.bindingCount];
            m_ImageInfo  = new VkDescriptorImageInfo[m_createInfo.bindingCount];

            for (int i = 0; i < m_createInfo.bindingCount; i++)
            {
                m_Bindings[i] = m_createInfo.pBindings[i];
            }
        }
Ejemplo n.º 2
0
 public override VkResult CreateDescriptorPool(VkDescriptorPoolCreateInfo pCreateinfo, out VkDescriptorPool pDescriptorPool)
 {
     pDescriptorPool = new SoftwareDescriptorPool(this, pCreateinfo);
     return(VkResult.VK_SUCCESS);
 }