Ben Clayton | b85099a | 2021-07-17 17:38:46 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
2 | |||||
3 | using namespace metal; | ||||
4 | kernel void f() { | ||||
5 | int3 const a = int3(1, 2, 3); | ||||
6 | int3 const b = int3(4, 5, 6); | ||||
Ben Clayton | a92f425 | 2022-10-27 14:36:49 +0000 | [diff] [blame] | 7 | int3 const r = as_type<int3>((as_type<uint3>(a) * as_type<uint3>(b))); |
Ben Clayton | b85099a | 2021-07-17 17:38:46 +0000 | [diff] [blame] | 8 | return; |
9 | } | ||||
10 |