|
|
@ -18,11 +18,11 @@ public: |
|
|
VkDescriptorPool descriptor_pool, |
|
|
VkDescriptorPool descriptor_pool, |
|
|
const VkDescriptorSetLayout& set_layout |
|
|
const VkDescriptorSetLayout& set_layout |
|
|
); |
|
|
); |
|
|
DescriptorSet(const DescriptorSet&) = delete; |
|
|
DescriptorSet(const DescriptorSet&) = default; |
|
|
DescriptorSet(DescriptorSet&& other) noexcept; |
|
|
DescriptorSet(DescriptorSet&& other) noexcept; |
|
|
~DescriptorSet() noexcept; |
|
|
~DescriptorSet() noexcept; |
|
|
|
|
|
|
|
|
DescriptorSet& operator=(const DescriptorSet&) = delete; |
|
|
DescriptorSet& operator=(const DescriptorSet&) = default; |
|
|
DescriptorSet& operator=(DescriptorSet&& other) noexcept; |
|
|
DescriptorSet& operator=(DescriptorSet&& other) noexcept; |
|
|
|
|
|
|
|
|
explicit inline operator bool() const noexcept { |
|
|
explicit inline operator bool() const noexcept { |
|
|
@ -33,14 +33,6 @@ public: |
|
|
return m_descriptor_set == VK_NULL_HANDLE; |
|
|
return m_descriptor_set == VK_NULL_HANDLE; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
inline const Context* context() const noexcept { |
|
|
|
|
|
return m_context; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
inline Context* context() noexcept { |
|
|
|
|
|
return m_context; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
inline const VkDescriptorPool descriptor_pool() const noexcept { |
|
|
inline const VkDescriptorPool descriptor_pool() const noexcept { |
|
|
return m_descriptor_pool; |
|
|
return m_descriptor_pool; |
|
|
} |
|
|
} |
|
|
@ -59,7 +51,7 @@ public: |
|
|
|
|
|
|
|
|
inline void swap(DescriptorSet& other) noexcept { |
|
|
inline void swap(DescriptorSet& other) noexcept { |
|
|
using std::swap; |
|
|
using std::swap; |
|
|
swap(m_context, other.m_context); |
|
|
Wrapper::swap(other); |
|
|
swap(m_descriptor_pool, other.m_descriptor_pool); |
|
|
swap(m_descriptor_pool, other.m_descriptor_pool); |
|
|
swap(m_descriptor_set, other.m_descriptor_set); |
|
|
swap(m_descriptor_set, other.m_descriptor_set); |
|
|
} |
|
|
} |
|
|
|