mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[naga] Add snapshot test output omitted from #5702.
This commit is contained in:
committed by
Teodor Tanasoaia
parent
09acceebca
commit
1ad1c4ae77
106
naga/tests/out/ir/atomic_i_increment.compact.ron
Normal file
106
naga/tests/out/ir/atomic_i_increment.compact.ron
Normal file
@@ -0,0 +1,106 @@
|
||||
(
|
||||
types: [
|
||||
(
|
||||
name: None,
|
||||
inner: Scalar((
|
||||
kind: Uint,
|
||||
width: 4,
|
||||
)),
|
||||
),
|
||||
(
|
||||
name: None,
|
||||
inner: Struct(
|
||||
members: [
|
||||
(
|
||||
name: None,
|
||||
ty: 1,
|
||||
binding: None,
|
||||
offset: 0,
|
||||
),
|
||||
],
|
||||
span: 4,
|
||||
),
|
||||
),
|
||||
],
|
||||
special_types: (
|
||||
ray_desc: None,
|
||||
ray_intersection: None,
|
||||
predeclared_types: {},
|
||||
),
|
||||
constants: [],
|
||||
overrides: [],
|
||||
global_variables: [
|
||||
(
|
||||
name: None,
|
||||
space: Storage(
|
||||
access: ("LOAD | STORE"),
|
||||
),
|
||||
binding: Some((
|
||||
group: 0,
|
||||
binding: 0,
|
||||
)),
|
||||
ty: 2,
|
||||
init: None,
|
||||
),
|
||||
],
|
||||
global_expressions: [],
|
||||
functions: [
|
||||
(
|
||||
name: None,
|
||||
arguments: [],
|
||||
result: None,
|
||||
local_variables: [],
|
||||
expressions: [
|
||||
GlobalVariable(1),
|
||||
AccessIndex(
|
||||
base: 1,
|
||||
index: 0,
|
||||
),
|
||||
AtomicResult(
|
||||
ty: 1,
|
||||
comparison: false,
|
||||
),
|
||||
Literal(U32(1)),
|
||||
],
|
||||
named_expressions: {},
|
||||
body: [
|
||||
Emit((
|
||||
start: 1,
|
||||
end: 3,
|
||||
)),
|
||||
Atomic(
|
||||
pointer: 2,
|
||||
fun: Add,
|
||||
value: 4,
|
||||
result: 3,
|
||||
),
|
||||
Return(
|
||||
value: None,
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
entry_points: [
|
||||
(
|
||||
name: "stage::test_atomic_i_increment",
|
||||
stage: Compute,
|
||||
early_depth_test: None,
|
||||
workgroup_size: (32, 1, 1),
|
||||
function: (
|
||||
name: Some("stage::test_atomic_i_increment_wrap"),
|
||||
arguments: [],
|
||||
result: None,
|
||||
local_variables: [],
|
||||
expressions: [],
|
||||
named_expressions: {},
|
||||
body: [
|
||||
Call(
|
||||
function: 1,
|
||||
arguments: [],
|
||||
result: None,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
140
naga/tests/out/ir/atomic_i_increment.ron
Normal file
140
naga/tests/out/ir/atomic_i_increment.ron
Normal file
@@ -0,0 +1,140 @@
|
||||
(
|
||||
types: [
|
||||
(
|
||||
name: None,
|
||||
inner: Scalar((
|
||||
kind: Uint,
|
||||
width: 4,
|
||||
)),
|
||||
),
|
||||
(
|
||||
name: None,
|
||||
inner: Struct(
|
||||
members: [
|
||||
(
|
||||
name: None,
|
||||
ty: 1,
|
||||
binding: None,
|
||||
offset: 0,
|
||||
),
|
||||
],
|
||||
span: 4,
|
||||
),
|
||||
),
|
||||
(
|
||||
name: None,
|
||||
inner: Pointer(
|
||||
base: 2,
|
||||
space: Storage(
|
||||
access: ("LOAD | STORE"),
|
||||
),
|
||||
),
|
||||
),
|
||||
(
|
||||
name: None,
|
||||
inner: Pointer(
|
||||
base: 1,
|
||||
space: Storage(
|
||||
access: ("LOAD | STORE"),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
special_types: (
|
||||
ray_desc: None,
|
||||
ray_intersection: None,
|
||||
predeclared_types: {},
|
||||
),
|
||||
constants: [
|
||||
(
|
||||
name: None,
|
||||
ty: 1,
|
||||
init: 1,
|
||||
),
|
||||
(
|
||||
name: None,
|
||||
ty: 1,
|
||||
init: 2,
|
||||
),
|
||||
],
|
||||
overrides: [],
|
||||
global_variables: [
|
||||
(
|
||||
name: None,
|
||||
space: Storage(
|
||||
access: ("LOAD | STORE"),
|
||||
),
|
||||
binding: Some((
|
||||
group: 0,
|
||||
binding: 0,
|
||||
)),
|
||||
ty: 2,
|
||||
init: None,
|
||||
),
|
||||
],
|
||||
global_expressions: [
|
||||
Literal(U32(0)),
|
||||
Literal(U32(2)),
|
||||
],
|
||||
functions: [
|
||||
(
|
||||
name: None,
|
||||
arguments: [],
|
||||
result: None,
|
||||
local_variables: [],
|
||||
expressions: [
|
||||
GlobalVariable(1),
|
||||
Constant(2),
|
||||
Constant(1),
|
||||
AccessIndex(
|
||||
base: 1,
|
||||
index: 0,
|
||||
),
|
||||
AtomicResult(
|
||||
ty: 1,
|
||||
comparison: false,
|
||||
),
|
||||
Literal(U32(1)),
|
||||
],
|
||||
named_expressions: {},
|
||||
body: [
|
||||
Emit((
|
||||
start: 3,
|
||||
end: 5,
|
||||
)),
|
||||
Atomic(
|
||||
pointer: 4,
|
||||
fun: Add,
|
||||
value: 6,
|
||||
result: 5,
|
||||
),
|
||||
Return(
|
||||
value: None,
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
entry_points: [
|
||||
(
|
||||
name: "stage::test_atomic_i_increment",
|
||||
stage: Compute,
|
||||
early_depth_test: None,
|
||||
workgroup_size: (32, 1, 1),
|
||||
function: (
|
||||
name: Some("stage::test_atomic_i_increment_wrap"),
|
||||
arguments: [],
|
||||
result: None,
|
||||
local_variables: [],
|
||||
expressions: [],
|
||||
named_expressions: {},
|
||||
body: [
|
||||
Call(
|
||||
function: 1,
|
||||
arguments: [],
|
||||
result: None,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user