Explorar el Código

`#force_inline` procedures and move foreign procedures to a separate file

gingerBill hace 3 años
padre
commit
ae3b95b194
Se han modificado 2 ficheros con 199 adiciones y 199 borrados
  1. 185 199
      vendor/Metal/MetalClasses.odin
  2. 14 0
      vendor/Metal/MetalProcedures.odin

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 185 - 199
vendor/Metal/MetalClasses.odin


+ 14 - 0
vendor/Metal/MetalProcedures.odin

@@ -0,0 +1,14 @@
+package objc_Metal
+
+import NS "core:sys/darwin/Foundation"
+
+@(require)
+foreign import "system:Metal.framework"
+
+@(default_calling_convention="c", link_prefix="MTL")
+foreign Metal {
+	CopyAllDevices             :: proc() -> ^NS.Array ---
+	CopyAllDevicesWithObserver :: proc(observer: ^^NS.Object, handler: DeviceNotificationHandler) -> ^NS.Array ---
+	CreateSystemDefaultDevice  :: proc() -> ^NS.Object ---
+	RemoveDeviceObserver       :: proc(observer: ^NS.Object) ---
+}

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio