Vulkan2D
2D renderer written in C using Vulkan and SDL2
DescriptorControl.h
Go to the documentation of this file.
1 #pragma once
5 #include "VK2D/Structs.h"
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
16 VK2DDescCon vk2dDescConCreate(VK2DLogicalDevice dev, VkDescriptorSetLayout layout, uint32_t buffer, uint32_t sampler, uint32_t storageBuffer);
17 
20 void vk2dDescConFree(VK2DDescCon descCon);
21 
26 VkDescriptorSet vk2dDescConGetBufferSet(VK2DDescCon descCon, VK2DBuffer buffer);
27 
31 VkDescriptorSet vk2dDescConGetSet(VK2DDescCon descCon);
32 
37 VkDescriptorSet vk2dDescConGetSamplerSet(VK2DDescCon descCon, VK2DTexture tex);
38 
44 VkDescriptorSet vk2dDescConGetSamplerBufferSet(VK2DDescCon descCon, VK2DTexture tex, VK2DBuffer buffer);
45 
48 void vk2dDescConReset(VK2DDescCon descCon);
49 
50 #ifdef __cplusplus
51 }
52 #endif
VK2DDescCon vk2dDescConCreate(VK2DLogicalDevice dev, VkDescriptorSetLayout layout, uint32_t buffer, uint32_t sampler, uint32_t storageBuffer)
Creates an empty descriptor controller.
VkDescriptorSet vk2dDescConGetSamplerBufferSet(VK2DDescCon descCon, VK2DTexture tex, VK2DBuffer buffer)
Creates, updates, and returns a descriptor set ready to be bound to a command buffer.
VkDescriptorSet vk2dDescConGetSamplerSet(VK2DDescCon descCon, VK2DTexture tex)
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.
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.
void vk2dDescConReset(VK2DDescCon descCon)
Resets all pools in a descriptor controller (basically deletes all active sets so new ones can be all...
Forward declares struct typedefs.