2017-09-08 09:42:56 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "VideoBackends/Vulkan/VulkanLoader.h"
|
|
|
|
#include "VideoCommon/AbstractPipeline.h"
|
|
|
|
|
|
|
|
namespace Vulkan
|
|
|
|
{
|
|
|
|
class VKPipeline final : public AbstractPipeline
|
|
|
|
{
|
|
|
|
public:
|
2018-02-24 13:10:22 +00:00
|
|
|
explicit VKPipeline(VkPipeline pipeline, VkPipelineLayout pipeline_layout,
|
|
|
|
AbstractPipelineUsage usage);
|
2017-09-08 09:42:56 +00:00
|
|
|
~VKPipeline() override;
|
|
|
|
|
2018-02-24 13:10:22 +00:00
|
|
|
VkPipeline GetVkPipeline() const { return m_pipeline; }
|
|
|
|
VkPipelineLayout GetVkPipelineLayout() const { return m_pipeline_layout; }
|
|
|
|
AbstractPipelineUsage GetUsage() const { return m_usage; }
|
2017-09-08 09:42:56 +00:00
|
|
|
static std::unique_ptr<VKPipeline> Create(const AbstractPipelineConfig& config);
|
|
|
|
|
|
|
|
private:
|
|
|
|
VkPipeline m_pipeline;
|
2018-02-24 13:10:22 +00:00
|
|
|
VkPipelineLayout m_pipeline_layout;
|
|
|
|
AbstractPipelineUsage m_usage;
|
2017-09-08 09:42:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Vulkan
|