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

fix tests, doctests and wasm build #62

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

Davidster
Copy link
Contributor

@Davidster Davidster commented Feb 6, 2024

Resolves #61

Let me know if you'd like me to separate the test fixes from the wasm fix, it's no issue.

@@ -18,7 +18,7 @@ fn invalid_pending_frame_count() {

#[test]
fn end_frame_unclosed_query() {
let (_, device, _) = create_device(wgpu::Features::TIMESTAMP_QUERY).unwrap();
let (_, device, _queue) = create_device(wgpu::Features::TIMESTAMP_QUERY).unwrap();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Believe it or not, the test was panicking without this change, since the queue was getting dropped before calling Device::create_command_encoder. I added a test to wgpu to check for this:

gfx-rs/wgpu#5211

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh interesting. wonder why I didn't hit this before. Thanks for following up over on wgpu!

@Wumpf Wumpf self-requested a review February 7, 2024 09:19
Copy link
Owner

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent, thank you!

No need for bureaucracy for this small change. Let's put it in as-is
Would be good to still add a check against the wasm target on ci, but we can do that later

@Wumpf Wumpf merged commit 5f3debd into Wumpf:main Feb 7, 2024
1 check passed
@Wumpf Wumpf mentioned this pull request Feb 7, 2024
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 this pull request may close these issues.

Broken wasm build due to std::process::id function call, is this a bug?
2 participants