mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
VideoBackends: Add AbstractShader and AbstractPipeline classes
This commit is contained in:
27
Source/Core/VideoBackends/Vulkan/VKPipeline.h
Normal file
27
Source/Core/VideoBackends/Vulkan/VKPipeline.h
Normal file
@ -0,0 +1,27 @@
|
||||
// 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:
|
||||
explicit VKPipeline(VkPipeline pipeline);
|
||||
~VKPipeline() override;
|
||||
|
||||
VkPipeline GetPipeline() const { return m_pipeline; }
|
||||
static std::unique_ptr<VKPipeline> Create(const AbstractPipelineConfig& config);
|
||||
|
||||
private:
|
||||
VkPipeline m_pipeline;
|
||||
};
|
||||
|
||||
} // namespace Vulkan
|
Reference in New Issue
Block a user