This commit is contained in:
2025-01-12 18:33:36 -05:00
commit 7a66ef5269
54 changed files with 12993 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#+build darwin
package impl_metal
import imgui "../"
import mtl "vendor:darwin/Metal"
foreign import impl_metal "../lib/darwin/libdcimgui_impl_metal_arm64.a"
@(default_calling_convention = "cdecl", link_prefix = "cImGui_ImplMetal_")
foreign impl_metal {
Init :: proc(device: ^mtl.Device) -> b8 ---
Shutdown :: proc() ---
NewFrame :: proc( renderPassDescriptor: ^mtl.RenderPassDescriptor) ---
RenderDrawData :: proc(drawData: ^imgui.ImDrawData, commandBuffer: ^mtl.CommandBuffer, commandEncoder: ^mtl.CommandEncoder) ---
CreateFontsTexture :: proc(device: ^mtl.Device) -> b8 ---
DestroyFontsTexture :: proc () ---
CreateDeviceObjects :: proc(device: ^mtl.Device) -> b8 ---
DestroyDeviceObjects :: proc () ---
}