diff --git a/Sources/EasyMetalShader/Models/EMArgumentCompatible.swift b/Sources/EasyMetalShader/Models/EMArgumentCompatible.swift index 6585b0a..5daed0a 100644 --- a/Sources/EasyMetalShader/Models/EMArgumentCompatible.swift +++ b/Sources/EasyMetalShader/Models/EMArgumentCompatible.swift @@ -10,7 +10,7 @@ import MetalKit public protocol EMArgumentCompatible {} extension Bool: EMArgumentCompatible {} -extension Int: EMArgumentCompatible {} +extension Int32: EMArgumentCompatible {} extension Float: EMArgumentCompatible {} extension em_int2: EMArgumentCompatible {} extension em_int3: EMArgumentCompatible {} diff --git a/Sources/EasyMetalShader/Models/EMMetalArgument.swift b/Sources/EasyMetalShader/Models/EMMetalArgument.swift index 9a9f471..65ae32c 100644 --- a/Sources/EasyMetalShader/Models/EMMetalArgument.swift +++ b/Sources/EasyMetalShader/Models/EMMetalArgument.swift @@ -25,8 +25,8 @@ public enum EMMetalArgument { switch objTypeString { case "Swift.Bool": return (obj as? EMArgument)?.initialValue - case "Swift.Int": - return (obj as? EMArgument)?.initialValue + case "Swift.Int32": + return (obj as? EMArgument)?.initialValue case "EasyMetalShader.em_int2": return (obj as? EMArgument)?.initialValue case "EasyMetalShader.em_int3":