Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

Omit non referenced expressions #2378

Merged
merged 1 commit into from
Jun 13, 2023
Merged

Conversation

teoxoy
Copy link
Member

@teoxoy teoxoy commented Jun 12, 2023

No description provided.

@teoxoy
Copy link
Member Author

teoxoy commented Jun 12, 2023

Seems HLSL validation is failing on gfx-rs/wgpu#4555 which should be fixed by #2367.

Copy link
Member

@jimblandy jimblandy left a comment

Choose a reason for hiding this comment

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

Looks good!

arg,
arg1,
arg2,
arg3,
Copy link
Member

Choose a reason for hiding this comment

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

Nice catch. I think I've seen several of these fixed recently. I did a quick look and I think this must the last - the other places that use Math { .. } are sites that can't produce results at all without the arguments, so .. is probably okay there.

@@ -868,7 +873,7 @@ impl FunctionInfo {
S::Loop {
ref body,
ref continuing,
break_if: _,
break_if,
Copy link
Member

Choose a reason for hiding this comment

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

Another nice catch.

@jimblandy jimblandy force-pushed the omit-non-ref-exprs branch from 402c897 to 96a7b1a Compare June 13, 2023 00:44
@jimblandy jimblandy enabled auto-merge (rebase) June 13, 2023 00:44
@jimblandy jimblandy merged commit 0810546 into gfx-rs:master Jun 13, 2023
@teoxoy teoxoy deleted the omit-non-ref-exprs branch June 13, 2023 15:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants