mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 14:43:34 +00:00
working
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* pipeline.h :+: :+: :+: */
|
||||
/* Pipeline.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/12/18 21:23:52 by maldavid #+# #+# */
|
||||
/* Updated: 2024/03/25 19:09:01 by maldavid ### ########.fr */
|
||||
/* Updated: 2024/03/28 22:15:38 by maldavid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef __PIPELINE__
|
||||
#define __PIPELINE__
|
||||
|
||||
#include <renderer/command/vk_cmd_buffer.h>
|
||||
#include <Renderer/Command/CommandBuffer.h>
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
@@ -21,16 +21,16 @@ namespace mlx
|
||||
{
|
||||
public:
|
||||
void init(class Renderer& renderer);
|
||||
void destroy() noexcept;
|
||||
void Destroy() noexcept;
|
||||
|
||||
inline void bindPipeline(CmdBuffer& command_buffer) noexcept { vkCmdBindPipeline(command_buffer.get(), VK_PIPELINE_BIND_POINT_GRAPHICS, _graphics_pipeline); }
|
||||
inline void BindPipeline(CommandBuffer& command_buffer) noexcept { vkCmdBindPipeline(command_buffer.Get(), VK_PIPELINE_BIND_POINT_GRAPHICS, m_graphics_pipeline); }
|
||||
|
||||
inline const VkPipeline& getPipeline() const noexcept { return _graphics_pipeline; }
|
||||
inline const VkPipelineLayout& getPipelineLayout() const noexcept { return _pipeline_layout; }
|
||||
inline const VkPipeline& GetPipeline() const noexcept { return m_graphics_pipeline; }
|
||||
inline const VkPipelineLayout& GetPipelineLayout() const noexcept { return m_pipeline_layout; }
|
||||
|
||||
private:
|
||||
VkPipeline _graphics_pipeline = VK_NULL_HANDLE;
|
||||
VkPipelineLayout _pipeline_layout = VK_NULL_HANDLE;
|
||||
VkPipeline m_graphics_pipeline = VK_NULL_HANDLE;
|
||||
VkPipelineLayout m_pipeline_layout = VK_NULL_HANDLE;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user