dawn-cmake/test/unittest/reader/spirv/SpvModuleScopeVarParserTest...

26 lines
503 B
HLSL

static float4 gl_Position = float4(1.0f, 2.0f, 3.0f, 4.0f);
void main_1() {
return;
}
struct main_out {
float4 gl_Position;
};
struct tint_symbol {
float4 gl_Position : SV_Position;
};
main_out main_inner() {
main_1();
const main_out tint_symbol_1 = {gl_Position};
return tint_symbol_1;
}
tint_symbol main() {
const main_out inner_result = main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.gl_Position = inner_result.gl_Position;
return wrapper_result;
}