Antonio Maiorano | 08d9279 | 2024-01-11 20:51:50 +0000 | [diff] [blame] | 1 | void deref() { |
2 | int3 a = int3(0, 0, 0); | ||||
3 | int b = a.x; | ||||
4 | a.x = 42; | ||||
5 | } | ||||
6 | |||||
7 | void no_deref() { | ||||
8 | int3 a = int3(0, 0, 0); | ||||
9 | int b = a.x; | ||||
10 | a.x = 42; | ||||
11 | } | ||||
12 | |||||
13 | [numthreads(1, 1, 1)] | ||||
14 | void main() { | ||||
15 | deref(); | ||||
16 | no_deref(); | ||||
17 | return; | ||||
18 | } |