Makes dynamic descriptor control simpler.  
More...
Go to the source code of this file.
|  | 
| VK2DDescCon | vk2dDescConCreate (VK2DLogicalDevice dev, VkDescriptorSetLayout layout, uint32_t buffer, uint32_t sampler, uint32_t storageBuffer) | 
|  | Creates an empty descriptor controller. 
 | 
|  | 
| void | vk2dDescConFree (VK2DDescCon descCon) | 
|  | Frees a descriptor controller from memory. 
 | 
|  | 
| VkDescriptorSet | vk2dDescConGetBufferSet (VK2DDescCon descCon, VK2DBuffer buffer) | 
|  | Creates, updates, and returns a descriptor set ready to be bound to a command buffer. 
 | 
|  | 
| VkDescriptorSet | vk2dDescConGetSet (VK2DDescCon descCon) | 
|  | Creates, updates, and returns a blank descriptor set. 
 | 
|  | 
| VkDescriptorSet | vk2dDescConGetSamplerSet (VK2DDescCon descCon, VK2DTexture tex) | 
|  | Creates, updates, and returns a descriptor set ready to be bound to a command buffer. 
 | 
|  | 
| VkDescriptorSet | vk2dDescConGetSamplerBufferSet (VK2DDescCon descCon, VK2DTexture tex, VK2DBuffer buffer) | 
|  | Creates, updates, and returns a descriptor set ready to be bound to a command buffer. 
 | 
|  | 
| void | vk2dDescConReset (VK2DDescCon descCon) | 
|  | Resets all pools in a descriptor controller (basically deletes all active sets so new ones can be allocated) 
 | 
|  | 
Makes dynamic descriptor control simpler. 
- Author
- Paolo Mazzon 
◆ vk2dDescConCreate()
      
        
          | VK2DDescCon vk2dDescConCreate | ( | VK2DLogicalDevice | dev, | 
        
          |  |  | VkDescriptorSetLayout | layout, | 
        
          |  |  | uint32_t | buffer, | 
        
          |  |  | uint32_t | sampler, | 
        
          |  |  | uint32_t | storageBuffer | 
        
          |  | ) |  |  | 
      
 
Creates an empty descriptor controller. 
- Parameters
- 
  
    | layout | Descriptor set layout to use |  | buffer | Location of the buffer or VK2D_NO_LOCATION if unused (binding) |  | sampler | Location of the sampler or VK2D_NO_LOCATION if unused (binding) |  
 
- Returns
- New descriptor controller or NULL if it failed 
 
 
◆ vk2dDescConFree()
      
        
          | void vk2dDescConFree | ( | VK2DDescCon | descCon | ) |  | 
      
 
Frees a descriptor controller from memory. 
- Parameters
- 
  
    | descCon | Descriptor controller to free |  
 
 
 
◆ vk2dDescConGetBufferSet()
      
        
          | VkDescriptorSet vk2dDescConGetBufferSet | ( | VK2DDescCon | descCon, | 
        
          |  |  | VK2DBuffer | buffer | 
        
          |  | ) |  |  | 
      
 
Creates, updates, and returns a descriptor set ready to be bound to a command buffer. 
- Parameters
- 
  
    | descCon | Descriptor controller to pull the set from |  | buffer | Buffer to bind to the descriptor set |  
 
- Returns
- Returns a new descriptor set ready to be bound to a command buffer (valid until vk2dDescConReset is called) 
 
 
◆ vk2dDescConGetSamplerBufferSet()
      
        
          | VkDescriptorSet vk2dDescConGetSamplerBufferSet | ( | VK2DDescCon | descCon, | 
        
          |  |  | VK2DTexture | tex, | 
        
          |  |  | VK2DBuffer | buffer | 
        
          |  | ) |  |  | 
      
 
Creates, updates, and returns a descriptor set ready to be bound to a command buffer. 
- Parameters
- 
  
    | descCon | Descriptor controller to pull the set from |  | tex | Texture to bind to the descriptor set |  | buffer | Buffer to bind to the descriptor set |  
 
- Returns
- Returns a new descriptor set ready to be bound to a command buffer (valid until vk2dDescConReset is called) 
 
 
◆ vk2dDescConGetSamplerSet()
      
        
          | VkDescriptorSet vk2dDescConGetSamplerSet | ( | VK2DDescCon | descCon, | 
        
          |  |  | VK2DTexture | tex | 
        
          |  | ) |  |  | 
      
 
Creates, updates, and returns a descriptor set ready to be bound to a command buffer. 
- Parameters
- 
  
    | descCon | Descriptor controller to pull the set from |  | tex | Texture to bind to the descriptor set (namely the sampler and image view) |  
 
- Returns
- Returns a new descriptor set ready to be bound to a command buffer (valid until vk2dDescConReset is called) 
 
 
◆ vk2dDescConGetSet()
      
        
          | VkDescriptorSet vk2dDescConGetSet | ( | VK2DDescCon | descCon | ) |  | 
      
 
Creates, updates, and returns a blank descriptor set. 
- Parameters
- 
  
    | descCon | Descriptor controller to pull the set from |  
 
- Returns
- Returns a new descriptor set 
 
 
◆ vk2dDescConReset()
      
        
          | void vk2dDescConReset | ( | VK2DDescCon | descCon | ) |  | 
      
 
Resets all pools in a descriptor controller (basically deletes all active sets so new ones can be allocated) 
- Parameters
- 
  
    | descCon | Descriptor controller to reset |