mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-13 07:33:34 +00:00
adding pixel put pipeline
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/01/23 18:39:36 by maldavid #+# #+# */
|
||||
/* Updated: 2023/01/23 18:54:22 by maldavid ### ########.fr */
|
||||
/* Updated: 2023/03/31 17:28:36 by maldavid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -22,15 +22,22 @@ namespace mlx
|
||||
class DescriptorSet
|
||||
{
|
||||
public:
|
||||
void init(class Renderer* renderer, class UBO* ubo, class DescriptorSetLayout& layout, class DescriptorPool& pool);
|
||||
void destroy() noexcept;
|
||||
void init(class Renderer* renderer, class DescriptorPool* pool, class DescriptorSetLayout* layout);
|
||||
|
||||
void writeDescriptor(int binding, class UBO* ubo) noexcept;
|
||||
void writeDescriptor(int binding, VkImageView view, VkSampler sampler) noexcept;
|
||||
|
||||
inline bool isInit() noexcept { return _pool != nullptr && _renderer != nullptr; }
|
||||
|
||||
DescriptorSet duplicate();
|
||||
|
||||
VkDescriptorSet& operator()() noexcept;
|
||||
VkDescriptorSet& get() noexcept;
|
||||
|
||||
private:
|
||||
std::array<VkDescriptorSet, MAX_FRAMES_IN_FLIGHT> _desc_set;
|
||||
VkDescriptorPool _pool = VK_NULL_HANDLE;
|
||||
class DescriptorPool* _pool = nullptr;
|
||||
class DescriptorSetLayout* _layout = nullptr;
|
||||
class Renderer* _renderer = nullptr;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user