VOX
A little voxel engine
Loading...
Searching...
No Matches
Descriptor.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "vk_define.hpp"
4
5#include <vector>
6
8{
9
10public:
11
13 {
14 std::vector<VkDescriptorSetLayoutBinding> bindings;
16 uint32_t set_count = 1;
17 };
18
19 Descriptor();
20 Descriptor(VkDevice device, const CreateInfo & info);
21
22 Descriptor(const Descriptor &) = delete;
23 Descriptor & operator=(const Descriptor &) = delete;
24
25 Descriptor(Descriptor && other) noexcept;
26 Descriptor & operator=(Descriptor && other) noexcept;
27
29
30 void update(VkDevice device, VkImageView imageView, VkSampler sampler, VkImageLayout imageLayout);
31
32 void clear();
33
34 VkDescriptorSetLayout layout;
35 VkDescriptorPool pool;
36 std::vector<VkDescriptorSet> sets;
37 VkDescriptorSet set;
38
39private:
40
41 VkDevice m_device;
42 CreateInfo m_info;
43
44};
Definition: Descriptor.hpp:8
void update(VkDevice device, VkImageView imageView, VkSampler sampler, VkImageLayout imageLayout)
Definition: Descriptor.cpp:119
Descriptor & operator=(const Descriptor &)=delete
~Descriptor()
Definition: Descriptor.cpp:95
VkDescriptorSet set
Definition: Descriptor.hpp:37
VkDescriptorSetLayout layout
Definition: Descriptor.hpp:34
Descriptor()
Definition: Descriptor.cpp:3
VkDescriptorPool pool
Definition: Descriptor.hpp:35
std::vector< VkDescriptorSet > sets
Definition: Descriptor.hpp:36
Descriptor(const Descriptor &)=delete
void clear()
Definition: Descriptor.cpp:100
Definition: Descriptor.hpp:13
std::vector< VkDescriptorSetLayoutBinding > bindings
Definition: Descriptor.hpp:14
uint32_t descriptor_count
Definition: Descriptor.hpp:15
uint32_t set_count
Definition: Descriptor.hpp:16