mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Correct types in methods
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@ foreign import "system:Metal.framework"
|
|||||||
@(default_calling_convention="c", link_prefix="MTL")
|
@(default_calling_convention="c", link_prefix="MTL")
|
||||||
foreign Metal {
|
foreign Metal {
|
||||||
CopyAllDevices :: proc() -> ^NS.Array ---
|
CopyAllDevices :: proc() -> ^NS.Array ---
|
||||||
CopyAllDevicesWithObserver :: proc(observer: ^^NS.Object, handler: DeviceNotificationHandler) -> ^NS.Array ---
|
CopyAllDevicesWithObserver :: proc(observer: ^id, handler: DeviceNotificationHandler) -> ^NS.Array ---
|
||||||
CreateSystemDefaultDevice :: proc() -> ^NS.Object ---
|
CreateSystemDefaultDevice :: proc() -> ^Device ---
|
||||||
RemoveDeviceObserver :: proc(observer: ^NS.Object) ---
|
RemoveDeviceObserver :: proc(observer: id) ---
|
||||||
}
|
}
|
||||||
@@ -4,11 +4,15 @@ import NS "core:sys/darwin/Foundation"
|
|||||||
import "core:intrinsics"
|
import "core:intrinsics"
|
||||||
|
|
||||||
BOOL :: NS.BOOL
|
BOOL :: NS.BOOL
|
||||||
|
id :: ^NS.Object
|
||||||
|
|
||||||
CFTimeInterval :: NS.TimeInterval
|
CFTimeInterval :: NS.TimeInterval
|
||||||
|
|
||||||
IOSurfaceRef :: distinct rawptr
|
IOSurfaceRef :: distinct rawptr
|
||||||
|
|
||||||
|
dispatch_queue_t :: id
|
||||||
|
dispatch_data_t :: id
|
||||||
|
|
||||||
@(private)
|
@(private)
|
||||||
msgSend :: intrinsics.objc_send
|
msgSend :: intrinsics.objc_send
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package objc_test
|
||||||
|
|
||||||
|
import NS "core:sys/darwin/Foundation"
|
||||||
|
import MTL "core:sys/darwin/Metal"
|
||||||
|
|
||||||
|
main :: proc() {
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user