glslang/Test/spv.test.vert
John Kessenich fc51d284aa Backward incompatible: Turn on PureOperatorBuiltins: use only enum-based built-in functions in the AST.
If this breaks your AST consumer, best is to modify it to test
against the enum values instead of doing string comparisons on
built-in function names.  This is the reason the change was made.

If you need the old behavior, you should be able to get it back by changing
PureOperatorBuiltins to be false instead of true.  This path will work for
a while, but is marked deprecated.

Also, the old behavior is tagged as release 2.4.
2015-08-19 13:43:25 -06:00

15 lines
180 B
GLSL

#version 130
uniform mat4 transform;
attribute vec4 position;
in vec2 uv_in;
out vec2 uv;
void main()
{
uv = uv_in;
gl_Position = transform * position;
}