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
8namespace RGL{
9 struct DeviceMTL;
10
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}
Definition ShaderLibrary.hpp:11
Definition ShaderLibrary.hpp:15
Definition MTLShaderLibrary.hpp:11