Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WASM support #143

Closed
rparrett opened this issue Jan 8, 2022 · 1 comment
Closed

WASM support #143

rparrett opened this issue Jan 8, 2022 · 1 comment

Comments

@rparrett
Copy link
Collaborator

rparrett commented Jan 8, 2022

With the switch to array textures, we lost wasm support.

There seem to be several separate issues:

  1. When the number of tiles in a tileset is either 1 or divisible by 6, the texture is treated as a cubemap and tiles show up at all.

gfx-rs/wgpu#2161

  1. Some other mysterious issue, which results in tiles showing up black

StarToaster — Today at 12:23 PM
There might be wgpu bug with copy_texture_to_texture and arrays on webgl

I was unable to dig up a relevant issue for that one in the wgpu tracker

  1. We are limited to 256 tiles in a tileset due to texture dimension limits in wgpu.

This may have been fixed/mitigated by bevyengine/bevy#3452

@StarArawn
Copy link
Owner

Fixed by: #144

@StarArawn StarArawn reopened this Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants