1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-07 23:29:06 +00:00

Switches some of the interpolated fields to half precision.

This commit is contained in:
Thomas Harte 2020-09-09 18:17:05 -04:00
parent 016e96e6f8
commit dfcc8e9822

View File

@ -98,9 +98,9 @@ struct Line {
struct SourceInterpolator {
float4 position [[position]];
float2 textureCoordinates;
float unitColourPhase; // i.e. one unit per circle.
float colourPhase; // i.e. 2*pi units per circle, just regular radians.
float colourAmplitude [[flat]];
half unitColourPhase; // i.e. one unit per circle.
half colourPhase; // i.e. 2*pi units per circle, just regular radians.
half colourAmplitude [[flat]];
};
struct CopyInterpolator {