[spv-in] fix image array index type to be signed

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2021-03-25 09:21:58 -04:00
1 parent 26f629ccb4
commit 4fb4133298
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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,
});
+1 -1
View File
@@ -985,7 +985,7 @@ expression: output
ref_count: 1,
assignable_global: None,
ty: Value(Scalar(
kind: Uint,
kind: Sint,
width: 4,
)),
),
+1 -1
View File
@@ -1046,7 +1046,7 @@ expression: output
),
As(
expr: 69,
kind: Uint,
kind: Sint,
convert: true,
),
ImageSample(