blob: fc5524ede5304b9fb25ff0061013f30047105723 [file] [log] [blame]
dan sinclair69313792024-06-13 20:35:21 +00001
dan sinclair8f1d2762024-07-31 02:35:40 +00002void deref() {
3 float2x3 a = float2x3((0.0f).xxx, (0.0f).xxx);
Antonio Maiorano4fc7d412024-10-01 21:50:36 +00004 float3 b = a[int(0)];
5 a[int(0)] = float3(1.0f, 2.0f, 3.0f);
dan sinclair8f1d2762024-07-31 02:35:40 +00006}
7
8void no_deref() {
9 float2x3 a = float2x3((0.0f).xxx, (0.0f).xxx);
Antonio Maiorano4fc7d412024-10-01 21:50:36 +000010 float3 b = a[int(0)];
11 a[int(0)] = float3(1.0f, 2.0f, 3.0f);
dan sinclair8f1d2762024-07-31 02:35:40 +000012}
13
14[numthreads(1, 1, 1)]
15void main() {
16 deref();
17 no_deref();
18}
19