Backends: SDL_GPU3: use MSL on macOS and MetalLib on iOS to fix shader compatibility. (#9076)

Edit original PR to keep metallib shader binary since next commit is going to use them.
This commit is contained in:
Leon Lysak
2025-11-26 14:51:22 +01:00
committed by ocornut
parent 285e3042ba
commit fd887f5241
5 changed files with 55 additions and 1 deletions

View File

@@ -34,6 +34,8 @@ Instructions to rebuild imgui_impl_sdlgpu3_shaders.h
xcrun -sdk macosx metallib -o vertex.metallib -c vertex.ir
xcrun -sdk macosx metallib -o fragment.metallib -c fragment.ir
note: use .metal outputs for updating msl_vertex / msl_fragment variables, and use .metallib outputs for metallib_vertex / metallib_fragment variables
Proceed to step 4