dan sinclair | 6931379 | 2024-06-13 20:35:21 +0000 | [diff] [blame] | 1 | |
dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 2 | void deref() { |
| 3 | float2x3 a = float2x3((0.0f).xxx, (0.0f).xxx); |
Antonio Maiorano | 4fc7d41 | 2024-10-01 21:50:36 +0000 | [diff] [blame] | 4 | float3 b = a[int(0)]; |
| 5 | a[int(0)] = float3(1.0f, 2.0f, 3.0f); |
dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 6 | } |
| 7 | |
| 8 | void no_deref() { |
| 9 | float2x3 a = float2x3((0.0f).xxx, (0.0f).xxx); |
Antonio Maiorano | 4fc7d41 | 2024-10-01 21:50:36 +0000 | [diff] [blame] | 10 | float3 b = a[int(0)]; |
| 11 | a[int(0)] = float3(1.0f, 2.0f, 3.0f); |
dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | [numthreads(1, 1, 1)] |
| 15 | void main() { |
| 16 | deref(); |
| 17 | no_deref(); |
| 18 | } |
| 19 | |