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:
@@ -21,7 +21,7 @@ uniform FragInfo {
|
||||
vec2 end_point;
|
||||
float alpha;
|
||||
float tile_mode;
|
||||
float colors_length;
|
||||
int colors_length;
|
||||
}
|
||||
frag_info;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ uniform FragInfo {
|
||||
float radius;
|
||||
float tile_mode;
|
||||
float alpha;
|
||||
float colors_length;
|
||||
int colors_length;
|
||||
}
|
||||
frag_info;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ uniform FragInfo {
|
||||
float scale;
|
||||
float tile_mode;
|
||||
float alpha;
|
||||
float colors_length;
|
||||
int colors_length;
|
||||
}
|
||||
frag_info;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user