skia2/tests/sksl/glsl/golden/TextureSharpenVersion110.glsl
John Stiles 72664bede4 Add support for #pragma settings comments in SkSL.
This will allow us to write skslc-based golden tests that deviate from
the standalone skslc settings.

This CL provides six options; more will be added as necessary.
- Default (caps)
- UsesPrecisionModifiers (caps)
- Version110 (caps)
- Version450Core (caps)
- ForceHighPrecision (settings flag bit)
- Sharpen (settings flag bit)

Change-Id: I9b779e039b2f0c0ccf43dca226fb4844aff3526b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317237
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2020-09-16 22:19:58 +00:00

11 lines
306 B
GLSL

#version 110
uniform sampler1D one;
uniform sampler2D two;
void main() {
vec4 a = texture1D(one, 0.0, -0.5);
vec4 b = texture2D(two, vec2(0.0), -0.5);
vec4 c = texture1DProj(one, vec2(0.0), -0.5);
vec4 d = texture2DProj(two, vec3(0.0), -0.5);
gl_FragColor = vec4(a.x, b.x, c.x, d.x);
}