Renderer: Add RenderPipeline::GetPipelineInfo
This commit is contained in:
@@ -24,7 +24,7 @@ namespace Nz
|
||||
|
||||
void Apply(const GL::Context& context) const;
|
||||
|
||||
inline const RenderPipelineInfo& GetPipelineInfo() const;
|
||||
inline const RenderPipelineInfo& GetPipelineInfo() const override;
|
||||
|
||||
private:
|
||||
RenderPipelineInfo m_pipelineInfo;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Nz
|
||||
};
|
||||
|
||||
std::shared_ptr<RenderPipelineLayout> pipelineLayout;
|
||||
std::vector<std::shared_ptr<ShaderStageImpl>> shaderStages;
|
||||
std::vector<std::shared_ptr<ShaderStage>> shaderStages;
|
||||
std::vector<VertexBufferData> vertexBuffers;
|
||||
};
|
||||
|
||||
@@ -31,6 +31,8 @@ namespace Nz
|
||||
public:
|
||||
RenderPipeline() = default;
|
||||
virtual ~RenderPipeline();
|
||||
|
||||
virtual const RenderPipelineInfo& GetPipelineInfo() const = 0;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -28,6 +28,8 @@ namespace Nz
|
||||
|
||||
VkPipeline Get(const Vk::RenderPass& renderPass) const;
|
||||
|
||||
inline const RenderPipelineInfo& GetPipelineInfo() const override;
|
||||
|
||||
static std::vector<VkPipelineColorBlendAttachmentState> BuildColorBlendAttachmentStateList(const RenderPipelineInfo& pipelineInfo);
|
||||
static VkPipelineColorBlendStateCreateInfo BuildColorBlendInfo(const RenderPipelineInfo& pipelineInfo, const std::vector<VkPipelineColorBlendAttachmentState>& attachmentState);
|
||||
static VkPipelineDepthStencilStateCreateInfo BuildDepthStencilInfo(const RenderPipelineInfo& pipelineInfo);
|
||||
|
||||
@@ -7,6 +7,10 @@
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
inline const RenderPipelineInfo& VulkanRenderPipeline::GetPipelineInfo() const
|
||||
{
|
||||
return m_pipelineInfo;
|
||||
}
|
||||
}
|
||||
|
||||
#include <Nazara/VulkanRenderer/DebugOff.hpp>
|
||||
|
||||
Reference in New Issue
Block a user