kas-wgpu 0.7.0

KAS GUI / wgpu front-end
Documentation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License in the LICENSE-APACHE file or at:
//     https://www.apache.org/licenses/LICENSE-2.0

#version 450
#extension GL_ARB_separate_shader_objects : enable

precision mediump float;

layout(location = 0) in vec3 a_pos;
layout(location = 1) in vec3 a_col;
layout(location = 2) in vec2 a1;
layout(location = 3) in vec2 a2;
layout(location = 4) in vec2 a3;

layout(location = 0) out vec3 b_col;
layout(location = 1) out vec2 b1;
layout(location = 2) out vec2 b2;
layout(location = 3) out vec2 b3;

layout(set = 0, binding = 0) uniform Locals {
    vec2 scale;
};

const vec2 offset = { -1.0, 1.0 };

void main() {
    gl_Position = vec4(scale * a_pos.xy + offset, a_pos.z, 1.0);
    b_col = a_col;
    b1 = a1;
    b2 = a2;
    b3 = a3;
}