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

Creating an unrelated buffer stops text from rendering #38

Open
MichaelBaker opened this issue Apr 28, 2020 · 0 comments
Open

Creating an unrelated buffer stops text from rendering #38

MichaelBaker opened this issue Apr 28, 2020 · 0 comments

Comments

@MichaelBaker
Copy link

MichaelBaker commented Apr 28, 2020

Hello, I'm not sure if this is a problem with wgpu, wgpu_glyph, or my understanding of wgpu so I'm posting it to both projects.

I've created a minimal runnable example here: https://github.com/MichaelBaker/wgpu-glyph-example

This is the line that causes the problem. If you comment this line out, the text renders correctly: https://github.com/MichaelBaker/wgpu-glyph-example/blob/5bcd7200d1a27df7add4a68b744b41df9b1de681/src/main.rs#L70

My best guess is that creating a buffer here corrupts or invalidates wgpu_glyph's cached transform buffer because if I remove this check from the pipeline it starts rendering correctly:

if transform != pipeline.current_transform {

Otherwise this library has worked great so thanks for putting it together.

I'm on a Macbook Pro running macOS 10.15.3 (Catalina).

Here is the wgpu issue: gfx-rs/wgpu-rs#288

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

No branches or pull requests

1 participant