RavEngine
Loading...
Searching...
No Matches
MTLSurface.hpp
1#pragma once
2#if RGL_MTL_AVAILABLE
3#include "MTLObjCCompatLayer.hpp"
4#include <RGL/Types.hpp>
5#include <RGL/Surface.hpp>
6
7namespace RGL {
8 struct SurfaceMTL : public ISurface{
9 APPLE_API_PTR(CAMetalLayer) layer;
10 SurfaceMTL(decltype(layer) layer ): layer(layer){}
11 };
12
13 RGLSurfacePtr CreateMTLSurfaceFromPlatformHandle(const void* pointer, bool createSurfaceObject);
14}
15
16#endif
17