/ src / Ryujinx.Graphics.Vulkan / Shaders / ColorBlitVertexShaderSource.vert
ColorBlitVertexShaderSource.vert
 1  #version 450 core
 2  
 3  layout (std140, binding = 1) uniform tex_coord_in
 4  {
 5      vec4 tex_coord_in_data;
 6  };
 7  
 8  layout (location = 0) out vec2 tex_coord;
 9  
10  void main()
11  {
12      int low = gl_VertexIndex & 1;
13      int high = gl_VertexIndex >> 1;
14      tex_coord.x = tex_coord_in_data[low];
15      tex_coord.y = tex_coord_in_data[2 + high];
16      gl_Position.x = (float(low) - 0.5f) * 2.0f;
17      gl_Position.y = (float(high) - 0.5f) * 2.0f;
18      gl_Position.z = 0.0f;
19      gl_Position.w = 1.0f;
20  }