Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <hans-kristian.arntzen@arm.com>2018-04-03 16:56:22 +0300
committerHans-Kristian Arntzen <hans-kristian.arntzen@arm.com>2018-04-03 17:04:49 +0300
commita6e211e00bb99f4a55dc7c9db37ae54c34015002 (patch)
tree5f76591bdc026bf12ea766b541bbc78541bad6ba /shaders
parent761b06bc73d1ecff58a4173943250c9fe3cad4a8 (diff)
Support dual-source blending on GLSL and MSL.
Diffstat (limited to 'shaders')
-rw-r--r--shaders/desktop-only/frag/dual-source-blending.desktop.frag10
1 files changed, 10 insertions, 0 deletions
diff --git a/shaders/desktop-only/frag/dual-source-blending.desktop.frag b/shaders/desktop-only/frag/dual-source-blending.desktop.frag
new file mode 100644
index 00000000..f322cf4c
--- /dev/null
+++ b/shaders/desktop-only/frag/dual-source-blending.desktop.frag
@@ -0,0 +1,10 @@
+#version 450
+
+layout(location = 0, index = 0) out vec4 FragColor0;
+layout(location = 0, index = 1) out vec4 FragColor1;
+
+void main()
+{
+ FragColor0 = vec4(1.0);
+ FragColor1 = vec4(2.0);
+}