소스 검색

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

gingerBill 3 년 전
부모
커밋
ae3b95b194
2개의 변경된 파일199개의 추가작업 그리고 199개의 파일을 삭제
  1. 185 199
      vendor/Metal/MetalClasses.odin
  2. 14 0
      vendor/Metal/MetalProcedures.odin

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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) ---
+}

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.