PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
DescriptorSet.hpp
1#pragma once
2
3#include "PixelBullet/Graphics/Commands/CommandBuffer.hpp"
4#include "PixelBullet/Graphics/Pipelines/Pipeline.hpp"
5
6namespace PixelBullet
7{
9 {
10 public:
11 explicit DescriptorSet(const Pipeline& pipeline);
13
14 static void Update(const std::vector<VkWriteDescriptorSet>& descriptorWrites);
15
16 void BindDescriptor(const CommandBuffer& commandBuffer) const;
17
18 const VkDescriptorSet& GetDescriptorSet() const
19 {
20 return m_DescriptorSet;
21 }
22
23 private:
24 VkPipelineLayout m_PipelineLayout;
25 VkPipelineBindPoint m_PipelineBindPoint;
26 VkDescriptorPool m_DescriptorPool;
27 VkDescriptorSet m_DescriptorSet = VK_NULL_HANDLE;
28 };
29} // namespace PixelBullet
Class that represents a command buffer.
Definition CommandBuffer.hpp:15
Definition DescriptorSet.hpp:9
Class that is used to represent a pipeline.
Definition Pipeline.hpp:12