Trouble rendering in debug mode on macOS. #1437
Unanswered
5nefarious
asked this question in
Q&A
Replies: 0 comments 13 replies
-
Perhaps, you are dropping |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm trying to write a test program in the bevy engine using wgpu-rs directly (bypassing the existing rendering infrastructure). So far, I've just copied the code from the
hello-triangle
example and integrated it into the engine. However, when I run the code in debug mode, I get a blank window. The triangle shows up just fine when I run with--release
.I can get the triangle to show up in debug mode if I print the
wgpu::Surface
(usingfmt::Debug
) right after it is created, but this seems like odd behavior. I cloned the wgpu-rs repo and was able to run thehello-triangle
example successfully in both debug and release modes.Here's the section of code that I suspect is relevant. I can post more if needed.
I'm using the Metal backend on macOS 11.2.3. wgpu-rs is at version 0.7 (I can't seem to use
master
due to a dependency conflict).Beta Was this translation helpful? Give feedback.
All reactions