mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
fix >= in template list matching for a<b>=c (#6898)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
This commit is contained in:
@@ -241,6 +241,7 @@ By @wumpf in [#6849](https://github.com/gfx-rs/wgpu/pull/6849).
|
||||
|
||||
- Fix crash when a texture argument is missing. By @aedm in [#6486](https://github.com/gfx-rs/wgpu/pull/6486)
|
||||
- Emit an error in constant evaluation, rather than crash, in certain cases where `vecN` constructors have less than N arguments. By @ErichDonGubler in [#6508](https://github.com/gfx-rs/wgpu/pull/6508).
|
||||
- Fix an error in template list matching `>=` in `a<b>=c`. By @KentSlaney in [#6898](https://github.com/gfx-rs/wgpu/pull/6898).
|
||||
- Correctly validate handles in override-sized array types. By @jimblandy in [#6882](https://github.com/gfx-rs/wgpu/pull/6882).
|
||||
- Clean up validation of `Statement::ImageStore`. By @jimblandy in [#6729](https://github.com/gfx-rs/wgpu-pull/6729).
|
||||
- In compaction, avoid cloning the type arena. By @jimblandy in [#6790](https://github.com/gfx-rs/wgpu-pull/6790)
|
||||
|
||||
@@ -950,9 +950,6 @@ impl Parser {
|
||||
match enclosing {
|
||||
Some(Rule::GenericExpr) => |token| match token {
|
||||
Token::LogicalOperation('<') => Some(crate::BinaryOperator::LessEqual),
|
||||
Token::LogicalOperation('>') => {
|
||||
Some(crate::BinaryOperator::GreaterEqual)
|
||||
}
|
||||
_ => None,
|
||||
},
|
||||
_ => |token| match token {
|
||||
|
||||
10
naga/tests/in/template-list-ge.wgsl
Normal file
10
naga/tests/in/template-list-ge.wgsl
Normal file
@@ -0,0 +1,10 @@
|
||||
@group(0) @binding(0)
|
||||
var<storage, read_write> out: array<i32, 2>;
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn main() {
|
||||
var tmp: array<i32, 1 << 1>=array(1, 2);
|
||||
for (var i = 0; i < 2; i++) {
|
||||
out[i] = tmp[i];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user