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
In my example config.width or config.height exceeds 2048.
We are hitting here "normal" limitations of WebGL2. It could also be that depth testing is just not possible with WebGL2.
Repro steps
Not available right now.
Expected vs observed behavior
I expect to be able to use depth testing for arbitrary screen resolutions.
Extra materials
None
Platform
Tested Browsers: Chrome on Linux/Chrome on Android
The text was updated successfully, but these errors were encountered:
What limits are you requesting? The downlevel and WebGL2 limits that we offer here are just on the safe side. If you need a depth buffer, and need it larger, you should request bigger limits.
I.e. just set max_texture_dimension_2d: 4096 if your canvas size is bigger than 2K, and that should be good.
Yes, it's as expected. wgpu respects the limits you are requesting. The limit presets, like downlevel_defaults() are just for your convenience, they aren't anything special.
Description
I'm trying to run a simple example using the WebGL2 backend. The validation fails with the following error:
The issue is a texture I'm using for the depth buffer. The texture is created as follows:
In my example
config.width
orconfig.height
exceeds 2048.We are hitting here "normal" limitations of WebGL2. It could also be that depth testing is just not possible with WebGL2.
Repro steps
Not available right now.
Expected vs observed behavior
I expect to be able to use depth testing for arbitrary screen resolutions.
Extra materials
None
Platform
The text was updated successfully, but these errors were encountered: