-
Notifications
You must be signed in to change notification settings - Fork 956
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[naga wgsl-in] Support abstract operands to binary operators.
- Loading branch information
Showing
11 changed files
with
498 additions
and
28 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
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,45 @@ | ||
const plus_fafaf: f32 = 1.0 + 2.0; | ||
const plus_fafai: f32 = 1.0 + 2; | ||
const plus_faf_f: f32 = 1.0 + 2f; | ||
const plus_faiaf: f32 = 1 + 2.0; | ||
const plus_faiai: f32 = 1 + 2; | ||
const plus_fai_f: f32 = 1 + 2f; | ||
const plus_f_faf: f32 = 1f + 2.0; | ||
const plus_f_fai: f32 = 1f + 2; | ||
const plus_f_f_f: f32 = 1f + 2f; | ||
|
||
const plus_iaiai: i32 = 1 + 2; | ||
const plus_iai_i: i32 = 1 + 2i; | ||
const plus_i_iai: i32 = 1i + 2; | ||
const plus_i_i_i: i32 = 1i + 2i; | ||
|
||
const plus_uaiai: u32 = 1 + 2; | ||
const plus_uai_u: u32 = 1 + 2u; | ||
const plus_u_uai: u32 = 1u + 2; | ||
const plus_u_u_u: u32 = 1u + 2u; | ||
|
||
fn runtime_values() { | ||
var f: f32 = 42; | ||
var i: i32 = 43; | ||
var u: u32 = 44; | ||
|
||
var plus_fafaf: f32 = 1.0 + 2.0; | ||
var plus_fafai: f32 = 1.0 + 2; | ||
var plus_faf_f: f32 = 1.0 + f; | ||
var plus_faiaf: f32 = 1 + 2.0; | ||
var plus_faiai: f32 = 1 + 2; | ||
var plus_fai_f: f32 = 1 + f; | ||
var plus_f_faf: f32 = f + 2.0; | ||
var plus_f_fai: f32 = f + 2; | ||
var plus_f_f_f: f32 = f + f; | ||
|
||
var plus_iaiai: i32 = 1 + 2; | ||
var plus_iai_i: i32 = 1 + i; | ||
var plus_i_iai: i32 = i + 2; | ||
var plus_i_i_i: i32 = i + i; | ||
|
||
var plus_uaiai: u32 = 1 + 2; | ||
var plus_uai_u: u32 = 1 + u; | ||
var plus_u_uai: u32 = u + 2; | ||
var plus_u_u_u: u32 = u + u; | ||
} |
Oops, something went wrong.