diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-09-15 11:42:17 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-15 18:50:54 +0000 |
commit | 05d5a13fea6246648de7e41358ed338d53c85ea2 (patch) | |
tree | 695fdbeae1116f8ce813288e47b31c2a99f28f1f /src/sksl/sksl_frag.include | |
parent | 49f1f34438d3431f6d7e32847accd2ba96948a73 (diff) |
Revert "Revert "Switched highp float to highfloat and mediump float to half.""
This reverts commit 1d816b92bb7cf2258007f3f74ffd143b89f25d01.
Bug: skia:
Change-Id: I388b5e5e9bf619db48297a80c9a80c039f26c9f1
Reviewed-on: https://skia-review.googlesource.com/46464
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/sksl_frag.include')
-rw-r--r-- | src/sksl/sksl_frag.include | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sksl/sksl_frag.include b/src/sksl/sksl_frag.include index 2cd1e52413..c5f9ffe647 100644 --- a/src/sksl/sksl_frag.include +++ b/src/sksl/sksl_frag.include @@ -2,20 +2,20 @@ STRINGIFY( // defines built-in interfaces supported by SkiaSL fragment shaders -layout(builtin=15) in float4 sk_FragCoord; -layout(builtin=3) float sk_ClipDistance[1]; +layout(builtin=15) in highfloat4 sk_FragCoord; +layout(builtin=3) highfloat sk_ClipDistance[1]; // 9999 is a temporary value that causes us to ignore these declarations beyond // adding them to the symbol table. This works fine in GLSL (where they do not // require any further handling) but will fail in SPIR-V. We'll have a better // solution for this soon. -layout(builtin=9999) float4 gl_LastFragData[1]; -layout(builtin=9999) float4 gl_LastFragColor; -layout(builtin=9999) float4 gl_LastFragColorARM; +layout(builtin=9999) highfloat4 gl_LastFragData[1]; +layout(builtin=9999) half4 gl_LastFragColor; +layout(builtin=9999) half4 gl_LastFragColorARM; layout(builtin=9999) int gl_SampleMaskIn[1]; layout(builtin=9999) out int gl_SampleMask[1]; -layout(builtin=9999) out float4 gl_SecondaryFragColorEXT; +layout(builtin=9999) out half4 gl_SecondaryFragColorEXT; -layout(location=0,index=0,builtin=10001) out float4 sk_FragColor; +layout(location=0,index=0,builtin=10001) out half4 sk_FragColor; ) |