dawn-cmake/test/tint/bug/tint/1641.wgsl.expected.fxc.hlsl

20 lines
399 B
HLSL

struct Normals {
float3 f;
};
struct tint_symbol {
float4 value : SV_Position;
};
float4 main_inner() {
const Normals tint_symbol_1[1] = {{float3(0.0f, 0.0f, 1.0f)}};
return float4(tint_symbol_1[0].f, 1.0f);
}
tint_symbol main() {
const float4 inner_result = main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}