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
Modern graphics hardware has a limit on the size of textures. If you set the color range too large, the deck.gl may try to create or use texture resources that exceed this limit during internal processing. For example, the texSubImage2D function, which is used to update a portion of the texture, fires an INVALID error if the width or height passed in exceeds the legal range of the texture If you try to create a texture with a size larger than the maximum texture size supported by your hardware, a GL error is triggered.
//Query for the maximum texture size const gl = document.createElement('canvas').getContext('webgl'); const maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE);
Set the appropriate colorrange so that the texture resources generated by the colorrange do not exceed the maximum limit
Description
If I create a
HexagonLayer
with a largecolorRange
, the following warnings are issued:In addition, all hexagons become black.
These warnings were not issued with deck.gl 9.0.x.
Expected Behavior
Same behavior as in deck.gl 9.0.x, or at least a warning in the documentation of
colorRange
about large color ranges (and what "large" means).Steps to Reproduce
Add
to the HexagonLayer example in the documentation.
Environment
Logs
The text was updated successfully, but these errors were encountered: