1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00
OpenDX/src/dxvk/shaders/dxvk_blit_frag_2d.frag

19 lines
397 B
GLSL

#version 450
layout(set = 0, binding = 0)
uniform sampler2DArray s_texture;
layout(location = 0) in vec2 i_pos;
layout(location = 0) out vec4 o_color;
layout(push_constant)
uniform push_block {
vec3 p_src_coord0;
vec3 p_src_coord1;
uint p_layer_count;
};
void main() {
vec2 coord = mix(p_src_coord0.xy, p_src_coord1.xy, i_pos);
o_color = texture(s_texture, vec3(coord, gl_Layer));
}