summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/hlsl.float1.frag
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/glslang/src/Test/hlsl.float1.frag')
-rw-r--r--chromium/third_party/glslang/src/Test/hlsl.float1.frag7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/hlsl.float1.frag b/chromium/third_party/glslang/src/Test/hlsl.float1.frag
new file mode 100644
index 00000000000..5000dcedcf1
--- /dev/null
+++ b/chromium/third_party/glslang/src/Test/hlsl.float1.frag
@@ -0,0 +1,7 @@
+float1 f1 = float1(1.0);
+float scalar = 2.0;
+
+float1 ShaderFunction(float1 inFloat1, float inScalar) : COLOR0
+{
+ return f1 * scalar + inFloat1 * inScalar;
+}