skia2/resources/sksl/errors/LayoutInFunctions.sksl
Brian Osman a654faaf7f Add permittedLayoutFlags to checkModifiers
For now, just use this to prevent *any* layout qualifiers from appearing
on functions, or their parameters.

Bug: skia:11301
Change-Id: I05d8118c7121048c6ef49695a54e3714a8f8687e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/376796
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
2021-02-26 18:38:31 +00:00

44 lines
788 B
Plaintext

layout (
origin_upper_left,
override_coverage,
push_constant,
blend_support_all_equations,
tracked,
srgb_unpremul,
key,
location = 1,
offset = 1,
binding = 1,
index = 1,
set = 1,
builtin = 1,
input_attachment_index = 1,
max_vertices = 1,
invocations = 1,
marker = one,
when = one,
ctype = int)
void on_return() {}
void on_param(
layout (
origin_upper_left,
override_coverage,
push_constant,
blend_support_all_equations,
tracked,
srgb_unpremul,
key,
location = 1,
offset = 1,
binding = 1,
index = 1,
set = 1,
builtin = 1,
input_attachment_index = 1,
max_vertices = 1,
invocations = 1,
marker = one,
when = one,
ctype = int) float x) {}