summaryrefslogblamecommitdiffstats
path: root/wgpu/src/shader/blit.frag
blob: dfed960f92a64ba923a131ae1cb3ab806ac7bc72 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                             
#version 450

layout(location = 0) in vec2 v_Uv;

layout(set = 0, binding = 0) uniform sampler u_Sampler;
layout(set = 1, binding = 0) uniform texture2D u_Texture;

layout(location = 0) out vec4 o_Color;

void main() {
    o_Color = texture(sampler2D(u_Texture, u_Sampler), v_Uv);
}