#force_inline procedures and move foreign procedures to a separate file

This commit is contained in:
gingerBill
2022-02-12 17:46:19 +00:00
parent acaae1357c
commit ae3b95b194
2 changed files with 1333 additions and 1333 deletions

File diff suppressed because it is too large Load Diff

14
vendor/Metal/MetalProcedures.odin vendored Normal file
View 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) ---
}