wgpu/naga/tests/out/ir/atomic_i_increment.ron
Jim Blandy d6c4d5c5c3 [naga] Manually implement serde traits for NonMaxU32.
When the appropriate features are enabled, manually implement
`serde::Serialize` and `serde::Deserialize`, such that the serialized
form of `NonMaxU32::new(n).unwrap()` is the same as that of `n`.

This eliminates the last trace of 1-based indices from Naga's snapshot
tests, and aligns `std::fmt::Debug` with the serialized form.
2024-06-21 10:09:03 +02:00

140 lines
3.2 KiB
Plaintext

(
types: [
(
name: None,
inner: Scalar((
kind: Uint,
width: 4,
)),
),
(
name: None,
inner: Struct(
members: [
(
name: None,
ty: 0,
binding: None,
offset: 0,
),
],
span: 4,
),
),
(
name: None,
inner: Pointer(
base: 1,
space: Storage(
access: ("LOAD | STORE"),
),
),
),
(
name: None,
inner: Pointer(
base: 0,
space: Storage(
access: ("LOAD | STORE"),
),
),
),
],
special_types: (
ray_desc: None,
ray_intersection: None,
predeclared_types: {},
),
constants: [
(
name: None,
ty: 0,
init: 0,
),
(
name: None,
ty: 0,
init: 1,
),
],
overrides: [],
global_variables: [
(
name: None,
space: Storage(
access: ("LOAD | STORE"),
),
binding: Some((
group: 0,
binding: 0,
)),
ty: 1,
init: None,
),
],
global_expressions: [
Literal(U32(0)),
Literal(U32(2)),
],
functions: [
(
name: None,
arguments: [],
result: None,
local_variables: [],
expressions: [
GlobalVariable(0),
Constant(1),
Constant(0),
AccessIndex(
base: 0,
index: 0,
),
AtomicResult(
ty: 0,
comparison: false,
),
Literal(U32(1)),
],
named_expressions: {},
body: [
Emit((
start: 3,
end: 5,
)),
Atomic(
pointer: 3,
fun: Add,
value: 5,
result: Some(4),
),
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: 0,
arguments: [],
result: None,
),
],
),
),
],
)