1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-18 19:29:34 +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 { struct SourceInterpolator {
float4 position [[position]]; float4 position [[position]];
float2 textureCoordinates; float2 textureCoordinates;
float unitColourPhase; // i.e. one unit per circle. half unitColourPhase; // i.e. one unit per circle.
float colourPhase; // i.e. 2*pi units per circle, just regular radians. half colourPhase; // i.e. 2*pi units per circle, just regular radians.
float colourAmplitude [[flat]]; half colourAmplitude [[flat]];
}; };
struct CopyInterpolator { struct CopyInterpolator {