1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-10 07:54:38 +01:00
dxvk/src/d3d11/shaders/d3d11_video_blit_vert.vert
2021-05-30 19:42:43 +02:00

13 lines
244 B
GLSL

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