" .geom for a geometry shader\n"
" .frag for a fragment shader\n"
" .comp for a compute shader\n"
+ " .glsl for .vert.glsl, .tesc.glsl, ..., .comp.glsl compound suffixes\n"
+ " .hlsl for .vert.hlsl, .tesc.hlsl, ..., .comp.hlsl compound suffixes\n"
"\n"
"Options:\n"
" -C cascading errors; risk crash from accumulation of error recoveries\n"
--- /dev/null
+compoundsuffix.frag.hlsl\r
+// Module Version 10000\r
+// Generated by (magic number): 80006\r
+// Id's are bound by 21\r
+\r
+ Capability Shader\r
+ 1: ExtInstImport "GLSL.std.450"\r
+ MemoryModel Logical GLSL450\r
+ EntryPoint Fragment 4 "main" 20\r
+ ExecutionMode 4 OriginUpperLeft\r
+ Source HLSL 500\r
+ Name 4 "main"\r
+ Name 20 "fragColor"\r
+ Decorate 20(fragColor) Location 0\r
+ 2: TypeVoid\r
+ 3: TypeFunction 2\r
+ 6: TypeFloat 32\r
+ 7: TypeVector 6(float) 4\r
+ 13: 6(float) Constant 1065353216\r
+ 14: 7(fvec4) ConstantComposite 13 13 13 13\r
+ 19: TypePointer Output 7(fvec4)\r
+ 20(fragColor): 19(ptr) Variable Output\r
+ 4(main): 2 Function None 3\r
+ 5: Label\r
+ Store 20(fragColor) 14\r
+ Return\r
+ FunctionEnd\r
--- /dev/null
+compoundsuffix.vert.glsl\r
+Shader version: 100\r
+0:? Sequence\r
+0:1 Function Definition: main( ( global void)\r
+0:1 Function Parameters: \r
+0:3 Sequence\r
+0:3 move second child to first child ( temp highp 4-component vector of float)\r
+0:3 'gl_Position' ( gl_Position highp 4-component vector of float Position)\r
+0:3 Constant:\r
+0:3 1.000000\r
+0:3 1.000000\r
+0:3 1.000000\r
+0:3 1.000000\r
+0:? Linker Objects\r
+\r
--- /dev/null
+void main(out float4 fragColor : SV_TARGET0)\r
+{\r
+ fragColor = 1;\r
+}\r
+\r
+\r
--- /dev/null
+void main()\r
+{\r
+ gl_Position = vec4(1.0);\r
+}
\ No newline at end of file
fi
#
-# Testing -S
+# Testing -S and compound suffixes
#
-echo Running explicit stage test
+echo Running explicit stage test and compound suffix tests
$EXE -i -S vert nosuffix > $TARGETDIR/nosuffix.out
diff -b $BASEDIR/nosuffix.out $TARGETDIR/nosuffix.out || HASERROR=1
+$EXE -i compoundsuffix.vert.glsl > $TARGETDIR/compoundsuffix.vert.glsl
+diff -b $BASEDIR/compoundsuffix.vert.glsl $TARGETDIR/compoundsuffix.vert.glsl || HASERROR=1
+$EXE -D -e main -H compoundsuffix.frag.hlsl > $TARGETDIR/compoundsuffix.frag.hlsl
+diff -b $BASEDIR/compoundsuffix.frag.hlsl $TARGETDIR/compoundsuffix.frag.hlsl || HASERROR=1
#
# Testing --hlsl-offsets