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 | float2x3 a = float2x3(0.0f); | ||||
6 | float3 b = a[0]; | ||||
7 | a[0] = float3(1.0f, 2.0f, 3.0f); | ||||
8 | } | ||||
9 | |||||
10 | void no_deref() { | ||||
11 | float2x3 a = float2x3(0.0f); | ||||
12 | float3 b = a[0]; | ||||
13 | a[0] = float3(1.0f, 2.0f, 3.0f); | ||||
14 | } | ||||
15 | |||||
16 | kernel void tint_symbol() { | ||||
17 | deref(); | ||||
18 | no_deref(); | ||||
19 | return; | ||||
20 | } | ||||
21 |