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