The open source OpenXR runtime
1// Copyright 2017, James Sarrett.
2// Copyright 2017, Bastiaan Olij.
3// Copyright 2019, Collabora, Ltd.
4// SPDX-License-Identifier: BSL-1.0
5// Author: James Sarrett <jsarrett@gmail.com>
6// Author: Bastiaan Olij <mux213@gmail.com>
7// Author: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
8// Author: Pete Black <pete.black@collabora.com>
9
10#version 450
11
12
13layout (binding = 0) uniform sampler2D tex_sampler;
14
15layout (location = 0) in vec2 in_ruv;
16layout (location = 1) in vec2 in_guv;
17layout (location = 2) in vec2 in_buv;
18layout (location = 0) out vec4 out_color;
19
20
21void main()
22{
23 float r = texture(tex_sampler, in_ruv).x;
24 float g = texture(tex_sampler, in_guv).y;
25 float b = texture(tex_sampler, in_buv).z;
26
27 out_color = vec4(r, g, b, 1.0);
28}