Vulkan2D
2D renderer written in C using Vulkan and SDL2
Loading...
Searching...
No Matches
DescriptorControl.h
Go to the documentation of this file.
1
4#pragma once
5#include "VK2D/Structs.h"
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
16VK2DDescCon vk2dDescConCreate(VK2DLogicalDevice dev, VkDescriptorSetLayout layout, uint32_t buffer, uint32_t sampler, uint32_t storageBuffer);
17
20void vk2dDescConFree(VK2DDescCon descCon);
21
26VkDescriptorSet vk2dDescConGetBufferSet(VK2DDescCon descCon, VK2DBuffer buffer);
27
31VkDescriptorSet vk2dDescConGetSet(VK2DDescCon descCon);
32
37VkDescriptorSet vk2dDescConGetSamplerSet(VK2DDescCon descCon, VK2DTexture tex);
38
44VkDescriptorSet vk2dDescConGetSamplerBufferSet(VK2DDescCon descCon, VK2DTexture tex, VK2DBuffer buffer);
45
48void 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.