Antonio Maiorano | 08d9279 | 2024-01-11 20:51:50 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
2 | |||||
3 | using namespace metal; | ||||
4 | void deref() { | ||||
5 | int3 a = 0; | ||||
6 | int b = a[0]; | ||||
7 | a[0] = 42; | ||||
8 | } | ||||
9 | |||||
10 | void no_deref() { | ||||
11 | int3 a = 0; | ||||
12 | int b = a[0]; | ||||
13 | a[0] = 42; | ||||
14 | } | ||||
15 | |||||
16 | kernel void tint_symbol() { | ||||
17 | deref(); | ||||
18 | no_deref(); | ||||
19 | return; | ||||
20 | } | ||||
21 |