소스 검색

Correct types in methods

gingerBill 3 년 전
부모
커밋
5fe9aa919b
4개의 변경된 파일246개의 추가작업 그리고 185개의 파일을 삭제
  1. 231 182
      core/sys/darwin/Metal/MetalClasses.odin
  2. 3 3
      core/sys/darwin/Metal/MetalProcedures.odin
  3. 4 0
      core/sys/darwin/Metal/MetalTypes.odin
  4. 8 0
      examples/objc/objc_main.odin

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 231 - 182
core/sys/darwin/Metal/MetalClasses.odin


+ 3 - 3
core/sys/darwin/Metal/MetalProcedures.odin

@@ -8,7 +8,7 @@ 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) ---
+	CopyAllDevicesWithObserver :: proc(observer: ^id, handler: DeviceNotificationHandler) -> ^NS.Array ---
+	CreateSystemDefaultDevice  :: proc() -> ^Device ---
+	RemoveDeviceObserver       :: proc(observer: id) ---
 }

+ 4 - 0
core/sys/darwin/Metal/MetalTypes.odin

@@ -4,11 +4,15 @@ import NS "core:sys/darwin/Foundation"
 import "core:intrinsics"
 
 BOOL :: NS.BOOL
+id :: ^NS.Object
 
 CFTimeInterval :: NS.TimeInterval
 
 IOSurfaceRef :: distinct rawptr
 
+dispatch_queue_t :: id
+dispatch_data_t  :: id
+
 @(private)
 msgSend :: intrinsics.objc_send
 

+ 8 - 0
examples/objc/objc_main.odin

@@ -0,0 +1,8 @@
+package objc_test
+
+import NS "core:sys/darwin/Foundation"
+import MTL "core:sys/darwin/Metal"
+
+main :: proc() {
+	
+}

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