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:
Diffstat (limited to 'reference/shaders-msl-no-opt/asm/frag/only-initializer-frag-depth.asm.frag')
-rw-r--r--reference/shaders-msl-no-opt/asm/frag/only-initializer-frag-depth.asm.frag17
1 files changed, 17 insertions, 0 deletions
diff --git a/reference/shaders-msl-no-opt/asm/frag/only-initializer-frag-depth.asm.frag b/reference/shaders-msl-no-opt/asm/frag/only-initializer-frag-depth.asm.frag
new file mode 100644
index 00000000..3f552ebb
--- /dev/null
+++ b/reference/shaders-msl-no-opt/asm/frag/only-initializer-frag-depth.asm.frag
@@ -0,0 +1,17 @@
+#include <metal_stdlib>
+#include <simd/simd.h>
+
+using namespace metal;
+
+struct main0_out
+{
+ float gl_FragDepth [[depth(any)]];
+};
+
+fragment main0_out main0()
+{
+ main0_out out = {};
+ out.gl_FragDepth = 0.5;
+ return out;
+}
+