8c3d183cc2
Added comments to explain the semantics (both what's expected when you set the uniform, and what you see in the shader). The old name was confusing, because it sounded like you got an sRGB color in the shader. This is terse, but I think it's the cleanest syntax - and for embedding clients, they can use C++ (etc.) API to require that color uniforms are assigned from color types. Bug: skia:10479 Change-Id: If00ea754060494aaa83001a5b357687953de8a5f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/480577 Reviewed-by: John Stiles <johnstiles@google.com> Reviewed-by: Derek Sollenberger <djsollen@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
26 lines
1.4 KiB
GLSL
26 lines
1.4 KiB
GLSL
### Compilation failed:
|
|
|
|
error: 13: layout qualifier 'origin_upper_left' is not permitted here
|
|
error: 13: layout qualifier 'push_constant' is not permitted here
|
|
error: 13: layout qualifier 'blend_support_all_equations' is not permitted here
|
|
error: 13: layout qualifier 'color' is not permitted here
|
|
error: 13: layout qualifier 'location' is not permitted here
|
|
error: 13: layout qualifier 'offset' is not permitted here
|
|
error: 13: layout qualifier 'binding' is not permitted here
|
|
error: 13: layout qualifier 'index' is not permitted here
|
|
error: 13: layout qualifier 'set' is not permitted here
|
|
error: 13: layout qualifier 'builtin' is not permitted here
|
|
error: 13: layout qualifier 'input_attachment_index' is not permitted here
|
|
error: 27: layout qualifier 'origin_upper_left' is not permitted here
|
|
error: 27: layout qualifier 'push_constant' is not permitted here
|
|
error: 27: layout qualifier 'blend_support_all_equations' is not permitted here
|
|
error: 27: layout qualifier 'color' is not permitted here
|
|
error: 27: layout qualifier 'location' is not permitted here
|
|
error: 27: layout qualifier 'offset' is not permitted here
|
|
error: 27: layout qualifier 'binding' is not permitted here
|
|
error: 27: layout qualifier 'index' is not permitted here
|
|
error: 27: layout qualifier 'set' is not permitted here
|
|
error: 27: layout qualifier 'builtin' is not permitted here
|
|
error: 27: layout qualifier 'input_attachment_index' is not permitted here
|
|
22 errors
|