Correct types in methods

This commit is contained in:
gingerBill
2022-02-12 21:24:28 +00:00
parent ff5d6a994b
commit 5fe9aa919b
4 changed files with 793 additions and 708 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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) ---
}

View File

@@ -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

View File

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