hecrj / wgpu_glyph

A fast text renderer for wgpu (https://github.com/gfx-rs/wgpu)
https://docs.rs/wgpu_glyph
MIT License
443 stars 77 forks source link

Configure hello example to run it in the web browser too #55

Open MarcAntoine-Arnaud opened 3 years ago

MarcAntoine-Arnaud commented 3 years ago

@hecrj ping

smolck commented 3 years ago

@MarcAntoine-Arnaud May I ask how this example is run? Following the directions mentioned in wgpu-rs's wiki, just modified for your branch, doesn't seem to work; I get errors in Firefox Nightly about Unsupported usage: TRANSFER_DST | UNIFORM, and it appears the wasm can't even be instantiated in Chrome Canary. This is the case when running it via WebGL or WebGPU.

MarcAntoine-Arnaud commented 3 years ago

Hello @smolck, The example cannot run on firefox right now due to unsupport of textures by wgpu 0.7. The master branch will solve that for the next release.

I have tested on Chrome and it works.