summaryrefslogtreecommitdiffstats
path: root/wgpu/src/shader/image.frag
blob: 2809e9e665ced2da4a20353eda18b03d62a4c39a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#version 450

layout(location = 0) in vec3 v_Uv;

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

layout(location = 0) out vec4 o_Color;

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