2017-09-08 03:42:56 -06: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 06:10:22 -07:00
|
|
|
explicit VKPipeline(VkPipeline pipeline, VkPipelineLayout pipeline_layout,
|
|
|
|
AbstractPipelineUsage usage);
|
2017-09-08 03:42:56 -06:00
|
|
|
~VKPipeline() override;
|
|
|
|
|
2018-02-24 06:10:22 -07:00
|
|
|
VkPipeline GetVkPipeline() const { return m_pipeline; }
|
|
|
|
VkPipelineLayout GetVkPipelineLayout() const { return m_pipeline_layout; }
|
|
|
|
AbstractPipelineUsage GetUsage() const { return m_usage; }
|
2017-09-08 03:42:56 -06:00
|
|
|
static std::unique_ptr<VKPipeline> Create(const AbstractPipelineConfig& config);
|
|
|
|
|
|
|
|
private:
|
|
|
|
VkPipeline m_pipeline;
|
2018-02-24 06:10:22 -07:00
|
|
|
VkPipelineLayout m_pipeline_layout;
|
|
|
|
AbstractPipelineUsage m_usage;
|
2017-09-08 03:42:56 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Vulkan
|