mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-18 00:37:43 +00:00
b22c069f7a
Adds command line options: --invert-y --iy (synonyms) which invert position.Y on vertex shader output. Handles these cases: * Direct single variable return * Member of direct returned struct * Single variable output parameter * Member of struct output parameter API: // Enables position.Y output negation in vertex shader void TShader::setInvertY(bool invert); Fixes #1173
9 lines
133 B
GLSL
9 lines
133 B
GLSL
// Test Y negation from entry point out parameter
|
|
|
|
float4 pos;
|
|
|
|
void main(out float4 position : SV_Position)
|
|
{
|
|
position = pos;
|
|
}
|