Skip to content

Conversation

@andyleiserson
Copy link
Contributor

Fixes a random CTS failure that I noticed while looking for CTS tests relevant to #7806.

The first two commits do some refactoring of the "constant evaluation" helpers that I resisted doing in #8721.

The last commit removes the dedicated helper constant_index (which failed to allow for i32 index type) and uses the newly refactored helpers.

Testing
Enables the relevant CTS test.

Squash or Rebase? Rebase

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy --tests. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

* Eliminates code duplication between the `u32` and `bool` versions.
* Rename to `get_const_val` since these aren't really evaluating anything.
@teoxoy teoxoy self-assigned this Jan 7, 2026
@teoxoy teoxoy merged commit 7a6fe1c into gfx-rs:trunk Jan 8, 2026
52 checks passed
@andyleiserson andyleiserson deleted the push-umluomxkrzyy branch January 8, 2026 17:24
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.

2 participants