dolphin/Source/Core/VideoBackends/Metal/MTLShader.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
617 B
C
Raw Normal View History

2022-06-01 11:58:13 +02:00
// Copyright 2022 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <Metal/Metal.h>
#include "VideoBackends/Metal/MRCHelpers.h"
#include "VideoCommon/AbstractPipeline.h"
#include "VideoCommon/AbstractShader.h"
namespace Metal
{
class Shader : public AbstractShader
{
public:
explicit Shader(ShaderStage stage, std::string msl, MRCOwned<id<MTLFunction>> shader);
~Shader();
2022-06-01 11:58:13 +02:00
id<MTLFunction> GetShader() const { return m_shader; }
BinaryData GetBinary() const override;
2022-06-01 11:58:13 +02:00
private:
std::string m_msl;
MRCOwned<id<MTLFunction>> m_shader;
};
} // namespace Metal