You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be (and is it even technically possible) to rewrite the quantizer as a shader in GLSL to do all math on GPU instead of CPU?
I mean to pass from JS an array of pixel colors to the GLSL shader and take back to JS an array of dominant colors.
If so, this could be used in a TypeScript version of the library for web app. Browsers now have pretty good WebGL support. I expect a significant increase in performance for (very) large images.
2.1. Is Celebi's algorithm optimized for GPU i.e. can take advantage of the parallel processing on a large number of GPU cores?
The text was updated successfully, but these errors were encountered:
I see that GLSL support coming soon (https://github.com/material-foundation/material-color-utilities#library-availability).
Two questions:
Any ETA?
Would it be (and is it even technically possible) to rewrite the quantizer as a shader in GLSL to do all math on GPU instead of CPU?
I mean to pass from JS an array of pixel colors to the GLSL shader and take back to JS an array of dominant colors.
If so, this could be used in a TypeScript version of the library for web app. Browsers now have pretty good WebGL support. I expect a significant increase in performance for (very) large images.
2.1. Is Celebi's algorithm optimized for GPU i.e. can take advantage of the parallel processing on a large number of GPU cores?
The text was updated successfully, but these errors were encountered: