aboutsummaryrefslogtreecommitdiff
path: root/resources/sksl/errors/SwizzleOnlyLiterals.rts
diff options
context:
space:
mode:
Diffstat (limited to 'resources/sksl/errors/SwizzleOnlyLiterals.rts')
-rw-r--r--resources/sksl/errors/SwizzleOnlyLiterals.rts5
1 files changed, 5 insertions, 0 deletions
diff --git a/resources/sksl/errors/SwizzleOnlyLiterals.rts b/resources/sksl/errors/SwizzleOnlyLiterals.rts
new file mode 100644
index 0000000000..a2bd6d2f26
--- /dev/null
+++ b/resources/sksl/errors/SwizzleOnlyLiterals.rts
@@ -0,0 +1,5 @@
+void func() { float x = 1.0; x = x.0; }
+
+/*%%*
+swizzle must refer to base expression
+*%%*/