Skip to content

Conversation

@aedm
Copy link
Contributor

@aedm aedm commented Nov 1, 2024

Connections
Fixes #6484

Description
There was an OOB when processing texture/sampler combinations across function calls.

Testing
Added a unit test checking for a proper validation error message.

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@aedm aedm marked this pull request as ready for review November 1, 2024 23:07
@aedm aedm requested a review from a team November 1, 2024 23:07
@ErichDonGubler ErichDonGubler added type: bug Something isn't working naga Shader Translator area: naga processing Passes over IR in the middle labels Nov 2, 2024
@aedm
Copy link
Contributor Author

aedm commented Nov 6, 2024

@Wumpf Request fixed, please take a look.

Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@teoxoy
Copy link
Member

teoxoy commented Nov 6, 2024

@aedm clippy is unhappy

@teoxoy teoxoy merged commit 47d20d9 into gfx-rs:trunk Nov 7, 2024
27 checks passed
@aedm
Copy link
Contributor Author

aedm commented Nov 8, 2024

@teoxoy Sorry, Clippy is happy now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: naga processing Passes over IR in the middle naga Shader Translator type: bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Missing WGSL texture argument crashes Naga

5 participants