Skip to content

Commit 093bdf6

Browse files
committed
fix int32
1 parent 41278e9 commit 093bdf6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/EasyMetalShader/Models/EMArgumentCompatible.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MetalKit
1010

1111
public protocol EMArgumentCompatible {}
1212
extension Bool: EMArgumentCompatible {}
13-
extension Int: EMArgumentCompatible {}
13+
extension Int32: EMArgumentCompatible {}
1414
extension Float: EMArgumentCompatible {}
1515
extension em_int2: EMArgumentCompatible {}
1616
extension em_int3: EMArgumentCompatible {}

Sources/EasyMetalShader/Models/EMMetalArgument.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public enum EMMetalArgument {
2525
switch objTypeString {
2626
case "Swift.Bool":
2727
return (obj as? EMArgument<Bool>)?.initialValue
28-
case "Swift.Int":
29-
return (obj as? EMArgument<Int>)?.initialValue
28+
case "Swift.Int32":
29+
return (obj as? EMArgument<Int32>)?.initialValue
3030
case "EasyMetalShader.em_int2":
3131
return (obj as? EMArgument<em_int2>)?.initialValue
3232
case "EasyMetalShader.em_int3":

0 commit comments

Comments
 (0)