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 <post@arntzen-software.no>2019-01-11 12:03:45 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2019-01-11 12:03:45 +0300
commita365ff17bd8d933871dbc3279684248ccfac7b16 (patch)
tree788840f17949e44dd559a6c7535854db252de83a /shaders-hlsl
parenta57b93f6b73a1aa9aaaeb893029f4dce74c907ba (diff)
HLSL: Support dual-source blending.
Diffstat (limited to 'shaders-hlsl')
-rw-r--r--shaders-hlsl/frag/dual-source-blending.frag10
1 files changed, 10 insertions, 0 deletions
diff --git a/shaders-hlsl/frag/dual-source-blending.frag b/shaders-hlsl/frag/dual-source-blending.frag
new file mode 100644
index 00000000..f322cf4c
--- /dev/null
+++ b/shaders-hlsl/frag/dual-source-blending.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);
+}