Skip to content

Commit

Permalink
fix int32
Browse files Browse the repository at this point in the history
  • Loading branch information
yukiny0811 committed Jan 9, 2024
1 parent 41278e9 commit 093bdf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/EasyMetalShader/Models/EMArgumentCompatible.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand Down
4 changes: 2 additions & 2 deletions Sources/EasyMetalShader/Models/EMMetalArgument.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public enum EMMetalArgument {
switch objTypeString {
case "Swift.Bool":
return (obj as? EMArgument<Bool>)?.initialValue
case "Swift.Int":
return (obj as? EMArgument<Int>)?.initialValue
case "Swift.Int32":
return (obj as? EMArgument<Int32>)?.initialValue
case "EasyMetalShader.em_int2":
return (obj as? EMArgument<em_int2>)?.initialValue
case "EasyMetalShader.em_int3":
Expand Down

0 comments on commit 093bdf6

Please sign in to comment.