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>2022-03-04 12:58:40 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2022-03-04 12:58:40 +0300
commit5d9fc2d90361a37b4a3f2ad7962fbb9d02cd33fc (patch)
treef5d147012379dcbc14e4716ed83c73edfdc31348 /shaders-hlsl-no-opt
parent005c14ad6ab76ba1d770c9384a78b77e72382f06 (diff)
HLSL: Add test for HelperInvocation.
Diffstat (limited to 'shaders-hlsl-no-opt')
-rw-r--r--shaders-hlsl-no-opt/frag/helper-invocation.fxconly.nofxc.frag11
1 files changed, 11 insertions, 0 deletions
diff --git a/shaders-hlsl-no-opt/frag/helper-invocation.fxconly.nofxc.frag b/shaders-hlsl-no-opt/frag/helper-invocation.fxconly.nofxc.frag
new file mode 100644
index 00000000..6f70c772
--- /dev/null
+++ b/shaders-hlsl-no-opt/frag/helper-invocation.fxconly.nofxc.frag
@@ -0,0 +1,11 @@
+#version 450
+#extension GL_EXT_demote_to_helper_invocation : require
+
+layout(location = 0) out float FragColor;
+
+void main()
+{
+ FragColor = float(gl_HelperInvocation);
+ demote;
+ FragColor = float(helperInvocationEXT());
+}