Metal: Switched to metal-cpp. (#3624)

* Metal: Switched to metal-cpp.

* Cleanup.

* Remove more Obj-C code.

* Add metal-cpp license.

* Cleanup.

* Reduce number of leak reports.

* Reducing Obj-C code.

* renderer_mtl.mm -> .cpp

* Cleanup.

* Cleanup.
This commit is contained in:
Branimir Karadžić
2026-03-08 16:33:43 -07:00
committed by GitHub
parent b28febb4a8
commit 608713739b
7 changed files with 30246 additions and 2163 deletions

View File

@@ -199,32 +199,7 @@ function bgfxProjectBase(_kind, _defines)
path.join(BGFX_DIR, "src/topology.cpp"),
path.join(BGFX_DIR, "src/vertexlayout.cpp"),
}
configuration { "xcode* or osx* or ios*" }
files {
path.join(BGFX_DIR, "src/amalgamated.mm"),
}
excludes {
path.join(BGFX_DIR, "src/renderer_**.mm"),
path.join(BGFX_DIR, "src/amalgamated.cpp"),
}
configuration { "not (xcode* or osx* or ios*)" }
excludes {
path.join(BGFX_DIR, "src/**.mm"),
}
configuration {}
else
configuration { "xcode* or osx* or ios*" }
files {
path.join(BGFX_DIR, "src/renderer_**.mm"),
}
configuration {}
excludes {
path.join(BGFX_DIR, "src/amalgamated.**"),
}