diff options
author | 2017-08-16 16:41:30 -0400 | |
---|---|---|
committer | 2017-08-16 23:05:15 +0000 | |
commit | 88d99c63878c2d3d340120f0321676f72afcb4f0 (patch) | |
tree | 5b957dbf2f78ef7a15aa3810f8922c915508683f /src/sksl/sksl_frag.include | |
parent | a26d219a929f4e70f8597dfd57a53348c4bba905 (diff) |
Switched highp float to highfloat and mediump float to half.
The ultimate goal is to end up with "float" and "half", but this
intermediate step uses "highfloat" so that it is clear if I missed a
"float" somewhere. Once this lands, a subsequent CL will switch all
"highfloats" back to "floats".
Bug: skia:
Change-Id: Ia13225c7a0a0a2901e07665891c473d2500ddcca
Reviewed-on: https://skia-review.googlesource.com/31000
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Brian Salomon <bsalomon@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; ) |