3#include "MTLObjCCompatLayer.hpp"
4#include <RGL/Types.hpp>
5#include <RGL/Surface.hpp>
8 struct SurfaceMTL :
public ISurface{
9 APPLE_API_PTR(CAMetalLayer) layer;
10 SurfaceMTL(
decltype(layer) layer ): layer(layer){}
13 RGLSurfacePtr CreateMTLSurfaceFromPlatformHandle(
const void* pointer,
bool createSurfaceObject);