glslang/Test/hlsl.y-negate-1.vert
LoopDawg b22c069f7a HLSL: add optional position.Y inversion
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
2017-12-07 10:48:14 -07:00

10 lines
106 B
GLSL

// Test Y negation from entry point return
float4 pos;
float4 main() : SV_Position
{
return pos;
}