summaryrefslogtreecommitdiff
path: root/tests/bugs/gh-133.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/gh-133.slang')
-rw-r--r--tests/bugs/gh-133.slang21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/bugs/gh-133.slang b/tests/bugs/gh-133.slang
new file mode 100644
index 000000000..56a896ec9
--- /dev/null
+++ b/tests/bugs/gh-133.slang
@@ -0,0 +1,21 @@
+//TEST:CROSS_COMPILE: -profile ps_5_0 -entry main -target spirv-assembly
+
+// Ensure that an integer output from
+// a fragment shader doesn't get a `flat` qualifier
+
+struct Fragment
+{
+ uint foo;
+};
+
+cbuffer U
+{
+ uint bar;
+}
+
+Fragment main() : SV_Target
+{
+ Fragment result;
+ result.foo = bar;
+ return result;
+}