1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-04 07:24:15 +01:00
dxvk/src/dxgi/shaders/dxgi_presenter_vert.vert
2019-06-29 01:34:16 +02:00

12 lines
243 B
GLSL

#version 450
layout(location = 0) out vec2 o_texcoord;
void main() {
vec2 coord = vec2(
float(gl_VertexIndex & 2),
float(gl_VertexIndex & 1) * 2.0f);
o_texcoord = coord;
gl_Position = vec4(-1.0f + 2.0f * coord, 0.0f, 1.0f);
}