Switched floats to ints in gradient shaders for better performance (flutter/engine#40189)

Switched floats to ints in gradient shaders for better performance
This commit is contained in:
gaaclarke
2023-03-09 14:13:54 -08:00
committed by GitHub
parent 916a10c630
commit f2c8cd4b58
3 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ uniform FragInfo {
vec2 end_point;
float alpha;
float tile_mode;
float colors_length;
int colors_length;
}
frag_info;

View File

@@ -21,7 +21,7 @@ uniform FragInfo {
float radius;
float tile_mode;
float alpha;
float colors_length;
int colors_length;
}
frag_info;

View File

@@ -23,7 +23,7 @@ uniform FragInfo {
float scale;
float tile_mode;
float alpha;
float colors_length;
int colors_length;
}
frag_info;