SPIRV-Cross/reference/opt/shaders/vert
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
..
basic.vert Update to latest glslang/SPIRV-Tools. 2019-01-30 13:41:57 +01:00
ground.vert GLSL: Handle more proper semantics for RelaxedPrecision. 2022-05-02 15:11:24 +02:00
invariant.vert Handle invariant decoration more robustly. 2018-11-22 11:55:57 +01:00
no-contraction.vert Honor NoContraction qualifier. 2021-05-07 12:59:47 +02:00
ocean.vert GLSL: Handle more proper semantics for RelaxedPrecision. 2022-05-02 15:11:24 +02:00
read-from-row-major-array.vert GLSL: Handle more proper semantics for RelaxedPrecision. 2022-05-02 15:11:24 +02:00
return-array.vert Return arrays in HLSL/MSL by writing to an output variable instead. 2018-02-08 12:22:08 +01:00
texture_buffer.vert Update references for GL_EXT_texture_buffer. 2022-01-14 14:57:24 +01:00
transform-feedback-decorations.vert GLSL: Support GL_ARB_enchanced_layouts for XFB. 2020-01-27 13:11:38 +01:00
ubo.vert Add reference output for --opt. 2017-11-23 09:50:11 +01:00