blob: b97666daa82930aab3c12aa80215f9b7911229d9 [file] [log] [blame]
void deref() {
float2x3 a = float2x3((0.0f).xxx, (0.0f).xxx);
float2x3 p = a;
float3 b = p[0];
p[0] = float3(1.0f, 2.0f, 3.0f);
}
void no_deref() {
float2x3 a = float2x3((0.0f).xxx, (0.0f).xxx);
float2x3 p = a;
float3 b = p[0];
p[0] = float3(1.0f, 2.0f, 3.0f);
}
[numthreads(1, 1, 1)]
void main() {
deref();
no_deref();
}