hecrj / wgpu_glyph

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

hello example is just a gray background #28

Closed ian-p-cooke closed 4 years ago

ian-p-cooke commented 4 years ago

re: https://github.com/hecrj/iced/issues/96

hello example is just a gray background

I also have the same problem as the author of the iced issue. I was originally investigating why iced doesn't display text in its examples.

AdapterInfo { name: "Radeon (TM) Pro WX 4100", vendor: 4098, device: 26595, device_type: DiscreteGpu }

ian-p-cooke commented 4 years ago

operating system is Windows 10 Pro for Workstation Version 10.0.17763 Build 17763. tried with stable (rustc 1.39.0 (4560ea788 2019-11-04)) and nightly (rustc 1.40.0-nightly (38048763e 2019-11-06)) windows msvc toolchains.

hecrj commented 4 years ago

Could you confirm your graphics drivers are up-to-date?

It's hard for me to debug this, as I can't really reproduce the issue. I am guessing it is probably related to texture sampling, as the other affected user has reported in https://github.com/hecrj/iced/issues/96 that they cannot see images either.

Maybe running with RUST_LOG=debug can give us a hint about the issue.

hecrj commented 4 years ago

Another thing worth trying might be running the cube example in wgpu and see if it shows the Mandelbrot texture.

image

ian-p-cooke commented 4 years ago

the cube example worked ok. I updated my drivers (from 23.20.15018.16 to 26.20.11018.4005) and now I can see text! Iced works too. Thanks!

luke-titley commented 4 years ago

hey I'm running a mac pro, mojave. Intel Iris Graphics 6100 1536. I have the same issue, mandelbrot wgpu-rs demo works fine, but the example for wgpu_glyth just displays a grey background.

luke-titley commented 4 years ago

Actually. Don't worry about this. I made some changes to wgpu_glyph to get it to build against wgpu-rs master branch and I think I introduced an error, so don't worry about this.