sandbox
Loading...
Searching...
No Matches
descriptor_set.hpp
1#ifndef LIBSBX_GRAPHICS_DESCRIPTOR_DESCRIPTOR_SET_HPP_
2#define LIBSBX_GRAPHICS_DESCRIPTOR_DESCRIPTOR_SET_HPP_
3
4#include <vulkan/vulkan.hpp>
5
6#include <libsbx/graphics/commands/command_buffer.hpp>
7
8#include <libsbx/graphics/pipeline/pipeline.hpp>
9
10namespace sbx::graphics {
11
13
14public:
15
16 explicit descriptor_set(const pipeline& pipeline) noexcept;
17
19
20 static auto update(const std::vector<VkWriteDescriptorSet>& write_descriptor_sets) -> void;
21
22 auto handle() const noexcept -> VkDescriptorSet;
23
24 operator VkDescriptorSet() const noexcept;
25
26 auto bind(command_buffer& command_buffer) const noexcept -> void;
27
28private:
29
30 VkPipelineLayout _pipeline_layout;
31 VkPipelineBindPoint _pipeline_bind_point;
32 VkDescriptorPool _descriptor_pool;
33 VkDescriptorSet _descriptor_set;
34
35}; // class descriptor_set
36
37} // namespace sbx::graphics
38
39#endif // LIBSBX_GRAPHICS_DESCRIPTOR_DESCRIPTOR_SET_HPP_
Definition: command_buffer.hpp:14
Definition: descriptor_set.hpp:12
Definition: pipeline.hpp:18