2019-10-14 15:43:30 +11:00
|
|
|
// IMPORTANT: This shader needs to be compiled out-of-band to SPIR-V
|
|
|
|
// See: https://github.com/parasyte/pixels/issues/9
|
|
|
|
|
2019-09-26 16:07:30 +10:00
|
|
|
#version 450
|
|
|
|
|
2019-10-03 13:22:20 +10:00
|
|
|
layout(location = 0) in vec2 v_TexCoord;
|
2019-09-26 16:07:30 +10:00
|
|
|
layout(location = 0) out vec4 outColor;
|
2019-10-03 13:22:20 +10:00
|
|
|
layout(set = 0, binding = 0) uniform texture2D t_Color;
|
|
|
|
layout(set = 0, binding = 1) uniform sampler s_Color;
|
2019-09-26 16:07:30 +10:00
|
|
|
|
|
|
|
void main() {
|
2019-10-03 13:22:20 +10:00
|
|
|
outColor = texture(sampler2D(t_Color, s_Color), v_TexCoord);
|
2019-09-26 16:07:30 +10:00
|
|
|
}
|