summaryrefslogtreecommitdiff
path: root/chromium/third_party/glslang/src/Test/spv.test.frag
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-04 11:08:44 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-04 11:08:44 +0100
commit7b32513f3138bd95d4163f30e87fc444ab3897da (patch)
treed2b38838d65112a1d05db19cc1e74f8d8f5696d1 /chromium/third_party/glslang/src/Test/spv.test.frag
parent8d510183ca27142801b56bb50d63cbb2a92d4337 (diff)
parent2b94bfe47ccb6c08047959d1c26e392919550e86 (diff)
downloadqtwebengine-chromium-7b32513f3138bd95d4163f30e87fc444ab3897da.tar.gz
Merge remote-tracking branch 'origin/upstream-master' into 71-based
Change-Id: Id64d87edf3764b7b2a539f34018a458c8fcce302
Diffstat (limited to 'chromium/third_party/glslang/src/Test/spv.test.frag')
-rw-r--r--chromium/third_party/glslang/src/Test/spv.test.frag22
1 files changed, 22 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/spv.test.frag b/chromium/third_party/glslang/src/Test/spv.test.frag
new file mode 100644
index 00000000000..68e712824e5
--- /dev/null
+++ b/chromium/third_party/glslang/src/Test/spv.test.frag
@@ -0,0 +1,22 @@
+#version 400
+
+uniform sampler2D texSampler2D;
+uniform sampler3D texSampler3D;
+
+in float blend;
+in vec2 scale;
+in vec4 u;
+
+in vec2 t;
+in vec3 coords;
+
+void main()
+{
+ float blendscale = 1.789;
+
+ vec4 v = texture(texSampler2D, (t + scale) / scale ).wzyx;
+
+ vec4 w = texture(texSampler3D, coords) + v;
+
+ gl_FragColor = mix(w, u, blend * blendscale);
+}