Files
wgpu/examples/mipmap/draw.frag
2019-06-16 21:15:16 -07:00

11 lines
287 B
GLSL

#version 450
layout(location = 0) in vec2 v_TexCoord;
layout(location = 0) out vec4 o_Target;
layout(set = 0, binding = 1) uniform texture2D t_Color;
layout(set = 0, binding = 2) uniform sampler s_Color;
void main() {
o_Target = texture(sampler2D(t_Color, s_Color), v_TexCoord);
}