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];
            }
        }
Beispiel #2
0
 public override VkResult CreateDescriptorSetLayout(VkDescriptorSetLayoutCreateInfo pCreateInfo, out VkDescriptorSetLayout pSetLayout)
 {
     pSetLayout = new SoftwareDescriptorSetLayout(this, pCreateInfo);
     return(VkResult.VK_SUCCESS);
 }