From e616ace74dce14f927c808cb82f2a8b21b0d392d Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 3 Jul 2026 17:48:11 +0200 Subject: [PATCH] CI, Backends: Metal4: fixed CI, added comments. (#9458) --- .github/workflows/build.yml | 4 ++-- backends/imgui_impl_metal4.h | 1 + backends/imgui_impl_metal4.mm | 1 + examples/example_sdl3_metal4/main.mm | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dd1d0d47e..3980838a4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -575,8 +575,8 @@ jobs: - name: Build macOS example_sdl2_metal run: make -C examples/example_sdl2_metal - - name: Build macOS example_sdl3_metal4 - run: make -C examples/example_sdl3_metal4 + #- name: Build macOS example_sdl3_metal4 + # run: make -C examples/example_sdl3_metal4 - name: Build macOS example_sdl2_opengl2 run: make -C examples/example_sdl2_opengl2 diff --git a/backends/imgui_impl_metal4.h b/backends/imgui_impl_metal4.h index 6bfea6e56..b5ec4ca56 100644 --- a/backends/imgui_impl_metal4.h +++ b/backends/imgui_impl_metal4.h @@ -1,5 +1,6 @@ // dear imgui: Renderer Backend for Metal 4 // This needs to be used along with a Platform Backend (e.g. OSX) +// Metal 4 requires Apple Silicon and macOS 26+. // Implemented features: // [X] Renderer: User texture binding. Use 'MTLTexture.gpuResourceID' as texture identifier. Read the FAQ about ImTextureID/ImTextureRef! diff --git a/backends/imgui_impl_metal4.mm b/backends/imgui_impl_metal4.mm index 5f8d4983a..f88d34b4e 100644 --- a/backends/imgui_impl_metal4.mm +++ b/backends/imgui_impl_metal4.mm @@ -1,5 +1,6 @@ // dear imgui: Renderer Backend for Metal 4 // This needs to be used along with a Platform Backend (e.g. OSX) +// Metal 4 requires Apple Silicon and macOS 26+. // Implemented features: // [X] Renderer: User texture binding. Use 'MTLTexture' as texture identifier. Read the FAQ about ImTextureID/ImTextureRef! diff --git a/examples/example_sdl3_metal4/main.mm b/examples/example_sdl3_metal4/main.mm index d80b4dde0..6debb5133 100644 --- a/examples/example_sdl3_metal4/main.mm +++ b/examples/example_sdl3_metal4/main.mm @@ -1,5 +1,6 @@ // Dear ImGui: standalone example application for SDL3 + Metal 4 // (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) +// (Metal 4 requires Apple Silicon and macOS 26+.) // Learn about Dear ImGui: // - FAQ https://dearimgui.com/faq