skia2/tests/sksl/errors/ModifiersInStruct.sksl
John Stiles 13fc260c70 Reject struct vardecls with modifiers.
These aren't allowed in GLSL, and typically don't make sense.

Change-Id: I0afca0df638590466922a809e91ef0be35b13ca8
Bug: skia:10765
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/324816
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2020-10-09 22:34:23 +00:00

8 lines
158 B
Plaintext

struct S {
const float a;
uniform int b;
flat half4 c;
noperspective float4 d;
inout volatile restrict varying buffer coherent bool e;
};