RavEngine
Loading...
Searching...
No Matches
MTLShaderLibrary.hpp
1
#pragma once
2
#include <RGL/Types.hpp>
3
#include <RGL/ShaderLibrary.hpp>
4
#include "MTLObjCCompatLayer.hpp"
5
#include <string_view>
6
#include <memory>
7
8
namespace
RGL{
9
struct
DeviceMTL;
10
11
struct
ShaderLibraryMTL
:
public
IShaderLibrary
{
12
OBJC_ID(MTLFunction) function =
nullptr
;
13
OBJC_ID(MTLLibrary) library =
nullptr
;
14
const
std::shared_ptr<DeviceMTL> owningDevice;
15
16
17
ShaderLibraryMTL
(
decltype
(owningDevice),
const
std::string_view);
18
ShaderLibraryMTL
(
decltype
(owningDevice),
const
std::string_view,
const
FromSourceConfig
& config);
19
20
virtual
~ShaderLibraryMTL
(){}
21
};
22
}
RGL::FromSourceConfig
Definition
ShaderLibrary.hpp:11
RGL::IShaderLibrary
Definition
ShaderLibrary.hpp:15
RGL::ShaderLibraryMTL
Definition
MTLShaderLibrary.hpp:11
RavEngine
deps
RGL
src
MTLShaderLibrary.hpp
Generated by
1.9.8