Commit 2daf917
Jonah Williams
[framework] reduce ink sparkle uniform count. (flutter#133897)
Fixes flutter#133325
Due to the number of uniforms present, the ink_sparkle shader can't run without post processing (on all target platforms) that the impellerc offline compiler doesn't perform. However, we can't just move the uniforms into a uniform buffer object (UBO) because the Skia backend doesn't support it.
Rather than work around this in the compiler, we can reduce the uniform count by 1) packing four floats into a single vec4 2) removing a uniform for what is effectively a constant.
This should have no visible effects, and if any scubas fail it means I did this wrong �1 parent 12261f9 commit 2daf917
File tree
2 files changed
+42
-49
lines changed- packages/flutter/lib/src/material
- shaders
2 files changed
+42
-49
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
330 | 330 | | |
331 | | - | |
332 | | - | |
| 331 | + | |
333 | 332 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
| 333 | + | |
340 | 334 | | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
| 335 | + | |
| 336 | + | |
345 | 337 | | |
346 | | - | |
| 338 | + | |
347 | 339 | | |
348 | | - | |
349 | | - | |
| 340 | + | |
| 341 | + | |
350 | 342 | | |
351 | | - | |
352 | | - | |
| 343 | + | |
| 344 | + | |
353 | 345 | | |
354 | | - | |
| 346 | + | |
355 | 347 | | |
356 | | - | |
357 | | - | |
| 348 | + | |
| 349 | + | |
358 | 350 | | |
359 | | - | |
360 | | - | |
| 351 | + | |
| 352 | + | |
361 | 353 | | |
362 | | - | |
363 | | - | |
| 354 | + | |
| 355 | + | |
364 | 356 | | |
365 | | - | |
366 | | - | |
| 357 | + | |
| 358 | + | |
367 | 359 | | |
368 | | - | |
369 | | - | |
| 360 | + | |
| 361 | + | |
370 | 362 | | |
371 | | - | |
372 | | - | |
| 363 | + | |
| 364 | + | |
373 | 365 | | |
374 | 366 | | |
375 | 367 | | |
| |||
Lines changed: 19 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
| |||
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
102 | | - | |
103 | | - | |
| 104 | + | |
104 | 105 | | |
0 commit comments