diff options
Diffstat (limited to 'src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_blit_frag_1d.frag')
-rw-r--r-- | src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_blit_frag_1d.frag | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_blit_frag_1d.frag b/src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_blit_frag_1d.frag new file mode 100644 index 00000000..2311c57c --- /dev/null +++ b/src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_blit_frag_1d.frag @@ -0,0 +1,19 @@ +#version 450 + +layout(set = 0, binding = 0) +uniform sampler1DArray 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() { + float coord = mix(p_src_coord0.x, p_src_coord1.x, i_pos.x); + o_color = texture(s_texture, vec2(coord, gl_Layer)); +}
\ No newline at end of file |