mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[spv-in] fix image array index type to be signed
This commit is contained in:
committed by
Dzmitry Malyshau
parent
26f629ccb4
commit
4fb4133298
@@ -88,7 +88,7 @@ fn extract_image_coordinates(
|
||||
};
|
||||
let array_index_f32 = expressions.append(extra_expr);
|
||||
let array_index = expressions.append(crate::Expression::As {
|
||||
kind: crate::ScalarKind::Uint,
|
||||
kind: crate::ScalarKind::Sint,
|
||||
expr: array_index_f32,
|
||||
convert: true,
|
||||
});
|
||||
|
||||
@@ -985,7 +985,7 @@ expression: output
|
||||
ref_count: 1,
|
||||
assignable_global: None,
|
||||
ty: Value(Scalar(
|
||||
kind: Uint,
|
||||
kind: Sint,
|
||||
width: 4,
|
||||
)),
|
||||
),
|
||||
|
||||
@@ -1046,7 +1046,7 @@ expression: output
|
||||
),
|
||||
As(
|
||||
expr: 69,
|
||||
kind: Uint,
|
||||
kind: Sint,
|
||||
convert: true,
|
||||
),
|
||||
ImageSample(
|
||||
|
||||
Reference in New Issue
Block a user