mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-16 16:14:06 +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")
|
||||
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,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
examples/objc/objc_main.odin
Normal file
8
examples/objc/objc_main.odin
Normal file
@@ -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