CsPaint  1.0.1
cspaint_descriptor.h
1 
19 #ifndef INCLUDED_CSPAINT_DESCRIPTOR_H
20 #define INCLUDED_CSPAINT_DESCRIPTOR_H
21 
22 #include <cspaint_fwd.h>
23 
24 #include <vulkan/vulkan.hpp>
25 
26 namespace CsPaint
27 {
28 
30 {
31  public:
32  using handle = std::shared_ptr<descriptor>;
33 
35 
36  descriptor(const descriptor &) = delete;
37  void operator=(const descriptor &) = delete;
38 
39  vk::DescriptorSet descriptorSet() const
40  {
41  return *m_descriptorSet;
42  }
43 
44  private:
46  vk::UniqueDescriptorSet m_descriptorSet;
47 };
48 }; // namespace CsPaint
49 
50 #endif
void operator=(const descriptor &) = delete
std::shared_ptr< descriptor_pool > descriptor_pool_handle
Definition: cspaint_fwd.h:42
descriptor(CsPaint::descriptor_pool_handle device, vk::UniqueDescriptorSet descriptorSet)
Definition: cspaint_device.h:35
std::shared_ptr< descriptor > handle
Definition: cspaint_descriptor.h:32
vk::DescriptorSet descriptorSet() const
Definition: cspaint_descriptor.h:39
Definition: cspaint_descriptor.h:29
Definition: cspaint_buffer.h:26