blob: 0890f21ed1d619d802deeab1a38a8ebeb1a14add [file]
cbuffer cbuffer_u : register(b0) {
uint4 u[4];
};
static float4x3 p = float4x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx);
float4x3 v(uint start_byte_offset) {
return float4x3(asfloat(u[(start_byte_offset / 16u)].xyz), asfloat(u[((16u + start_byte_offset) / 16u)].xyz), asfloat(u[((32u + start_byte_offset) / 16u)].xyz), asfloat(u[((48u + start_byte_offset) / 16u)].xyz));
}
[numthreads(1, 1, 1)]
void f() {
p = v(0u);
p[1u] = asfloat(u[0u].xyz);
p[1u] = asfloat(u[0u].xyz).zxy;
p[0u].y = asfloat(u[1u].x);
}