Parcourir la source

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

gingerBill il y a 3 ans
Parent
commit
ae3b95b194
2 fichiers modifiés avec 199 ajouts et 199 suppressions
  1. 185 199
      vendor/Metal/MetalClasses.odin
  2. 14 0
      vendor/Metal/MetalProcedures.odin

Fichier diff supprimé car celui-ci est trop grand
+ 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) ---
+}

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff