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
21void vk2dDescConUpdateAfterBind(VK2DDescCon descCon);
22
25void vk2dDescConFree(VK2DDescCon descCon);
26
31VkDescriptorSet vk2dDescConGetBufferSet(VK2DDescCon descCon, VK2DBuffer buffer);
32
36VkDescriptorSet vk2dDescConGetSet(VK2DDescCon descCon);
37
42VkDescriptorSet vk2dDescConGetSamplerSet(VK2DDescCon descCon, VK2DTexture tex);
43
49VkDescriptorSet vk2dDescConGetSamplerBufferSet(VK2DDescCon descCon, VK2DTexture tex, VK2DBuffer buffer);
50
53void vk2dDescConReset(VK2DDescCon descCon);
54
55#ifdef __cplusplus
56}
57#endif
VK2DDescCon vk2dDescConCreate(VK2DLogicalDevice dev, VkDescriptorSetLayout layout, uint32_t buffer, uint32_t sampler, uint32_t storageBuffer)
Creates an empty descriptor controller.
void vk2dDescConUpdateAfterBind(VK2DDescCon descCon)
Tells the desc con to allocate pools with update after bind.
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.