mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-06 02:34:05 +00:00
#force_inline procedures and move foreign procedures to a separate file
This commit is contained in:
2652
vendor/Metal/MetalClasses.odin
vendored
2652
vendor/Metal/MetalClasses.odin
vendored
File diff suppressed because it is too large
Load Diff
14
vendor/Metal/MetalProcedures.odin
vendored
Normal file
14
vendor/Metal/MetalProcedures.odin
vendored
Normal file
@@ -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) ---
|
||||
}
|
||||
Reference in New Issue
Block a user