skia2/resources/sksl/errors/LayoutRepeatedQualifiers.sksl
John Stiles a456175a07 Add expected errors to every test file.
This was (crudely) automated with shell scripts:
http://go/paste/5484300603490304

Change-Id: Ic9e1c93112772d303d1158eb26d995f27b439eba
Bug: skia:12665
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/505637
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2022-02-08 18:20:25 +00:00

43 lines
1.2 KiB
Plaintext

layout (
origin_upper_left,
push_constant,
blend_support_all_equations,
color,
location = 1,
offset = 1,
binding = 1,
index = 1,
set = 1,
builtin = 1,
input_attachment_index = 1,
origin_upper_left,
push_constant,
blend_support_all_equations,
color,
location = 2,
offset = 2,
binding = 2,
index = 2,
set = 2,
builtin = 2,
input_attachment_index = 2
) float x;
/*%%*
layout qualifier 'origin_upper_left' appears more than once
layout qualifier 'push_constant' appears more than once
layout qualifier 'blend_support_all_equations' appears more than once
layout qualifier 'color' appears more than once
layout qualifier 'location' appears more than once
layout qualifier 'offset' appears more than once
layout qualifier 'binding' appears more than once
layout qualifier 'index' appears more than once
layout qualifier 'set' appears more than once
layout qualifier 'builtin' appears more than once
layout qualifier 'input_attachment_index' appears more than once
'layout(color)' is only permitted in runtime effects
'layout(color)' is only permitted on 'uniform' variables
'layout(color)' is not permitted on variables of type 'float'
*%%*/