2017-09-08 09:42:56 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-09-08 09:42:56 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "VideoBackends/Vulkan/VulkanLoader.h"
|
|
|
|
#include "VideoCommon/AbstractPipeline.h"
|
|
|
|
|
|
|
|
namespace Vulkan
|
|
|
|
{
|
|
|
|
class VKPipeline final : public AbstractPipeline
|
|
|
|
{
|
|
|
|
public:
|
2023-01-28 00:28:52 +00:00
|
|
|
explicit VKPipeline(const AbstractPipelineConfig& config, 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
|