skia2/tests/sksl/errors/golden/ModifiersInStruct.glsl
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

9 lines
395 B
GLSL

### Compilation failed:
error: 1: modifier 'const' is not permitted on a struct field
error: 1: modifier 'uniform' is not permitted on a struct field
error: 1: modifier 'flat' is not permitted on a struct field
error: 1: modifier 'noperspective' is not permitted on a struct field
error: 1: modifier 'coherent volatile restrict buffer varying inout' is not permitted on a struct field
5 errors