Open truedat101 opened 6 months ago
Reviewing the sokol samples repo here:
The libraries needed:
https://github.com/floooh/sokol-samples/blob/master/metal/CMakeLists.txt
are
fips_begin_lib(osxentry)
fips_files(osxentry.m osxentry.h)
fips_frameworks_osx(Foundation)
if (FIPS_MACOS)
fips_frameworks_osx(Cocoa Metal MetalKit QuartzCore)
else()
fips_frameworks_osx(UIKit Metal MetalKit)
endif()
fips_end_lib()
fips_begin_lib(sokol_gfx)
fips_files(sokol_gfx.m)
if (FIPS_MACOS)
fips_frameworks_osx(Cocoa Metal MetalKit QuartzCore)
else()
fips_frameworks_osx(Metal MetalKit)
endif()
fips_end_lib()
So really:
Everything is hardcoded to GL but GL isn't supported (it compiles but is stuck at an old version). Move to metal. Might need matal-cpp or a C-wrapper: https://github.com/recp/cmt