egui_wgpu_backend 0.2.2

Backend code to use egui with wgpu.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#version 450

layout(location = 0) in vec2 v_tex_coord;
layout(location = 1) in vec4 v_color;
layout(location = 0) out vec4 f_color;

layout(set = 1, binding = 0) uniform texture2D t_texture;
layout(set = 0, binding = 1) uniform sampler s_texture;

void main() {
    f_color = v_color * texture(sampler2D(t_texture, s_texture), v_tex_coord);
}