dawn-cmake/test/shader_io/invariant_struct_member.wgs...

13 lines
231 B
HLSL

struct Out {
float4 pos;
};
struct tint_symbol {
precise float4 pos : SV_Position;
};
tint_symbol main() {
const Out tint_symbol_1 = (Out)0;
const tint_symbol tint_symbol_2 = {tint_symbol_1.pos};
return tint_symbol_2;
}