SPIRV-Cross/reference/shaders
Hans-Kristian Arntzen 7a6c2da9aa GLSL: Handle more proper semantics for RelaxedPrecision.
GLSL and RelaxedPrecision are quite different in what they affect.
RelaxedPrecision affects operations, while this is merely implied in
GLSL based on inputs.

This leads to situations where we have to promote mediump inputs to
highp, and the simplest approach is to force highp temporaries for
inputs which are consumed in a highp context. For completeness, we also
demote RelaxedPrecision inputs to mediump variables.

PHI is handled by copying the PHI into a temporary.

We have to be very careful with hoisted temporaries, since the child
temporary will not be analyzed up-front. We inherit the hoisted-ness
state and emit the hoisted child temporary as necessary. When faking the
temporaries with OpCopyObject, we make sure to block any variable
hoisting.

Hoisting children of PHI variables is fine, since PHIs are not hoisted with
the same framework as other temporaries.
2022-05-02 15:11:24 +02:00
..
amd Move all .invalid shaders into no-opt folders. 2019-11-05 13:19:19 -05:00
asm GLSL: Handle more proper semantics for RelaxedPrecision. 2022-05-02 15:11:24 +02:00
comp Add relax_nan_checks options. 2022-03-03 14:50:56 +01:00
desktop-only GLSL: Be more aggressive about using type_alias. 2020-07-29 12:48:41 +02:00
flatten Move all .invalid shaders into no-opt folders. 2019-11-05 13:19:19 -05:00
frag Handle Modf/Frexp in more cases. 2021-11-07 11:36:44 +01:00
geom GLSL: Add support for transform_feedback3 geometry streams. 2020-09-30 13:01:35 +02:00
legacy Normalize all internal workaround methods to use spv prefix. 2020-11-23 15:42:27 +01:00
tesc Do not eagerly invalidate all active variables on a branch. 2019-07-24 11:17:30 +02:00
tese Roll GLSLang, SPIRV-Headers and SPIRV-Tools. 2020-07-22 23:03:11 -04:00
vert Update references for GL_EXT_texture_buffer. 2022-01-14 14:57:24 +01:00
vulkan Roll dependencies. 2022-01-05 14:56:01 +01:00