Closed Hzfengsy closed 1 year ago
Current codegen output (half4)*(device uint*)A tries to create a int32 number and then cast it to half4, which is not the expected behavior.
(half4)*(device uint*)A
int32
half4
As Metal supports uchar4 and char4 types, we can direct use them to solve that problem.
uchar4
char4
(cherry picked from commit 6198c7fd8a75534d98efd0ef800b36fc4e3dc021)
Current codegen output
(half4)*(device uint*)A
tries to create aint32
number and then cast it tohalf4
, which is not the expected behavior.As Metal supports
uchar4
andchar4
types, we can direct use them to solve that problem.(cherry picked from commit 6198c7fd8a75534d98efd0ef800b36fc4e3dc021)