sdl3 0.18.0

Bindings to SDL3, a cross-platform library to abstract the platform-specific details for building applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 440
layout (location = 0) out vec4 v_color;
// glslc triangle.vert -o triangle.vert.spv
void main(void) {
	if(gl_VertexIndex == 0) {
		gl_Position = vec4(-1.f, -1.f, 0.f, 1.f);
		v_color = vec4(1.f, 0.f, 0.f, 1.f);
	} else if(gl_VertexIndex == 1) {
		gl_Position = vec4(1.0f, -1.0f, 0.f, 1.f);
		v_color = vec4(0.0f, 1.0f, 0.f, 1.f);
	} else if(gl_VertexIndex == 2) {
		gl_Position = vec4(0.0f, 1.0f, 0.f, 1.f);
		v_color = vec4(0.0f, 0.0f, 1.f, 1.f);
	}
}