forked from EmbarkStudios/rust-gpu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Account for signedness in memset const pat
Fixes EmbarkStudios#1061 Thanks to LegNeato
- Loading branch information
1 parent
54f6978
commit 231ca17
Showing
6 changed files
with
82 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Test creating an array. | ||
// build-pass | ||
|
||
use spirv_std::macros::spirv; | ||
|
||
#[spirv(fragment)] | ||
pub fn main(o: &mut i16) { | ||
let array = [0i16; 4]; | ||
*o = array[1]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Test creating an array. | ||
// build-pass | ||
|
||
use spirv_std::macros::spirv; | ||
|
||
#[spirv(fragment)] | ||
pub fn main(o: &mut i32) { | ||
let array = [0i32; 4]; | ||
*o = array[1]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Test creating an array. | ||
// build-pass | ||
|
||
use spirv_std::macros::spirv; | ||
|
||
#[spirv(fragment)] | ||
pub fn main(o: &mut i64) { | ||
let array = [0i64; 4]; | ||
*o = array[1]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Test creating an array. | ||
// build-pass | ||
|
||
use spirv_std::macros::spirv; | ||
|
||
#[spirv(fragment)] | ||
pub fn main(o: &mut i8) { | ||
let array = [0i8; 4]; | ||
*o = array[1]; | ||
} |