mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
7ff2f60412
Add a series of low level gpu.Backend tests to assure the correct behaviour of Backends. The immediate use is debugging of the Direct3D port, in the future for developing new backends. Signed-off-by: Elias Naur <mail@eliasnaur.com>
21 lines
293 B
GLSL
21 lines
293 B
GLSL
#version 310 es
|
|
|
|
// SPDX-License-Identifier: Unlicense OR MIT
|
|
|
|
precision highp float;
|
|
|
|
void main() {
|
|
float x, y;
|
|
if (gl_VertexIndex == 0) {
|
|
x = 0.0;
|
|
y = .5;
|
|
} else if (gl_VertexIndex == 1) {
|
|
x = .5;
|
|
y = -.5;
|
|
} else {
|
|
x = -.5;
|
|
y = -.5;
|
|
}
|
|
gl_Position = vec4(x, y, 0.5, 1.0);
|
|
}
|