rpcsx/rpcsx-gpu2/shaders/flip.vert.glsl
DH 4e83c9e121 gpu2: fix flipper
static pipeline for flip engine
optimize linear tiler
fixed out of bound in the tiler
implement swizzling for sampled images
2024-09-28 18:07:24 +03:00

15 lines
278 B
GLSL

#version 450
layout(location = 0) out vec2 coord;
void main()
{
float x = float(((gl_VertexIndex + 2) / 3) & 1) * 2 - 1;
float y = float(((gl_VertexIndex + 1) / 3) & 1) * 2 - 1;
gl_Position = vec4(x, y, 0, 1);
coord.x = x < 0 ? 0 : 1;
coord.y = y < 0 ? 0 : 1;
}