diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-02-19 23:23:41 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-02-19 23:23:41 +0100 |
| commit | 45783d96ec6f84893c85789ff5e5e2243e7f3db9 (patch) | |
| tree | 28d10972594a325d3cdd9171b3533bc921dd2fba /shaders/ui.vert | |
| parent | 14a79645579d6f4a9e541915017976619f24ecfb (diff) | |
Attempt at rendering imgui content
Diffstat (limited to 'shaders/ui.vert')
| -rw-r--r-- | shaders/ui.vert | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/shaders/ui.vert b/shaders/ui.vert new file mode 100644 index 0000000..fc427d8 --- /dev/null +++ b/shaders/ui.vert @@ -0,0 +1,18 @@ +struct Vertex {
+ vec2 pos;
+ vec2 uv;
+ uint col;
+};
+
+layout(set = 0, binding = 0) uniform Vertices {
+ Vertex[10000] vertices;
+};
+
+out gl_PerVertex
+{
+ vec4 gl_Position;
+};
+
+void main() {
+ gl_Position = vec4(vertices[gl_VertexIndex].pos, 0.0, 1.0);
+}
|
