From 139af7ed024d3d1a4393300bf52cb72724f158c3 Mon Sep 17 00:00:00 2001 From: Christian Guinard <28689358+christiangnrd@users.noreply.github.com> Date: Thu, 26 Dec 2024 00:23:21 -0500 Subject: [PATCH] Add MTLArchitecture --- lib/mtl/device.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/mtl/device.jl b/lib/mtl/device.jl index fccbebc1..b0df0631 100644 --- a/lib/mtl/device.jl +++ b/lib/mtl/device.jl @@ -4,6 +4,14 @@ export MTLDevice, MTLCreateSystemDefaultDevice, devices +@static if Metal._safe_minversion(v"14") + @objcwrapper MTLArchitecture <: NSObject + + @objcproperties MTLArchitecture begin + @autoproperty architecture::id{NSString} + end +end + @objcwrapper MTLDevice <: NSObject @objcproperties MTLDevice begin