wgpu/naga/tests/out/ir/shadow.ron

1307 lines
32 KiB
Plaintext
Raw Normal View History

2021-02-08 17:30:21 +00:00
(
types: [
(
name: None,
inner: Scalar((
2021-02-08 17:30:21 +00:00
kind: Float,
width: 4,
)),
2021-02-08 17:30:21 +00:00
),
(
name: None,
inner: Vector(
size: Tri,
scalar: (
kind: Float,
width: 4,
),
2021-02-08 17:30:21 +00:00
),
),
(
name: None,
inner: Scalar((
2021-02-08 17:30:21 +00:00
kind: Uint,
width: 4,
)),
2021-02-08 17:30:21 +00:00
),
(
name: None,
inner: Vector(
size: Quad,
scalar: (
kind: Float,
width: 4,
),
2021-02-08 17:30:21 +00:00
),
),
(
name: None,
inner: Scalar((
2021-02-08 17:30:21 +00:00
kind: Bool,
width: 1,
)),
2021-02-08 17:30:21 +00:00
),
(
name: None,
inner: Vector(
size: Bi,
scalar: (
kind: Float,
width: 4,
),
2021-02-08 17:30:21 +00:00
),
),
(
name: None,
inner: Image(
dim: D2,
arrayed: true,
class: Depth(
2021-02-08 17:30:21 +00:00
multi: false,
),
),
),
(
name: None,
inner: Sampler(
comparison: false,
),
),
(
name: None,
inner: Scalar((
2021-02-08 17:30:21 +00:00
kind: Sint,
width: 4,
)),
2021-02-08 17:30:21 +00:00
),
(
name: None,
inner: Pointer(
base: 1,
2022-01-25 23:29:02 +00:00
space: Function,
),
),
(
name: None,
inner: Pointer(
base: 2,
2022-01-25 23:29:02 +00:00
space: Function,
),
),
2021-02-08 17:30:21 +00:00
(
name: None,
inner: Vector(
size: Quad,
scalar: (
kind: Uint,
width: 4,
),
2021-02-08 17:30:21 +00:00
),
),
(
name: Some("Globals"),
inner: Struct(
members: [
(
name: Some("num_lights"),
ty: 11,
binding: None,
offset: 0,
2021-02-08 17:30:21 +00:00
),
],
span: 16,
2021-02-08 17:30:21 +00:00
),
),
(
name: None,
inner: Pointer(
base: 12,
2022-01-25 23:29:02 +00:00
space: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 11,
2022-01-25 23:29:02 +00:00
space: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 2,
2022-01-25 23:29:02 +00:00
space: Uniform,
),
),
2021-02-08 17:30:21 +00:00
(
name: None,
inner: Matrix(
columns: Quad,
rows: Quad,
scalar: (
kind: Float,
width: 4,
),
2021-02-08 17:30:21 +00:00
),
),
(
name: Some("Light"),
inner: Struct(
members: [
(
name: Some("proj"),
ty: 16,
binding: None,
offset: 0,
2021-02-08 17:30:21 +00:00
),
(
name: Some("pos"),
ty: 3,
binding: None,
offset: 64,
2021-02-08 17:30:21 +00:00
),
(
name: Some("color"),
ty: 3,
binding: None,
offset: 80,
2021-02-08 17:30:21 +00:00
),
],
span: 96,
2021-02-08 17:30:21 +00:00
),
),
(
name: None,
inner: Array(
base: 17,
2021-02-08 17:30:21 +00:00
size: Dynamic,
2021-04-04 14:26:28 +00:00
stride: 96,
2021-02-08 17:30:21 +00:00
),
),
(
name: Some("Lights"),
inner: Struct(
members: [
(
name: Some("data"),
ty: 18,
binding: None,
offset: 0,
2021-02-08 17:30:21 +00:00
),
],
span: 96,
2021-02-08 17:30:21 +00:00
),
),
(
name: None,
inner: Pointer(
base: 19,
2022-01-25 23:29:02 +00:00
space: Storage(
2023-06-01 13:40:47 +00:00
access: (""),
),
),
),
(
name: None,
inner: Pointer(
base: 18,
2022-01-25 23:29:02 +00:00
space: Storage(
2023-06-01 13:40:47 +00:00
access: ("LOAD | STORE"),
),
),
),
(
name: None,
inner: Pointer(
base: 17,
2022-01-25 23:29:02 +00:00
space: Storage(
2023-06-01 13:40:47 +00:00
access: ("LOAD | STORE"),
),
),
),
(
name: None,
inner: Pointer(
base: 16,
2022-01-25 23:29:02 +00:00
space: Storage(
2023-06-01 13:40:47 +00:00
access: ("LOAD | STORE"),
),
),
),
(
name: None,
inner: Pointer(
base: 3,
2022-01-25 23:29:02 +00:00
space: Private,
),
),
(
name: None,
inner: Pointer(
base: 1,
2022-01-25 23:29:02 +00:00
space: Private,
),
),
(
name: None,
inner: Pointer(
base: 3,
2022-01-25 23:29:02 +00:00
space: Storage(
2023-06-01 13:40:47 +00:00
access: ("LOAD | STORE"),
),
),
),
(
name: None,
inner: Pointer(
base: 0,
2022-01-25 23:29:02 +00:00
space: Storage(
2023-06-01 13:40:47 +00:00
access: ("LOAD | STORE"),
),
),
),
(
name: None,
inner: Pointer(
base: 0,
2022-01-25 23:29:02 +00:00
space: Private,
),
),
2021-02-08 17:30:21 +00:00
(
name: None,
inner: Sampler(
comparison: true,
),
),
],
special_types: (
ray_desc: None,
ray_intersection: None,
predeclared_types: {},
),
2021-02-08 17:30:21 +00:00
constants: [
(
name: None,
ty: 0,
init: 0,
),
(
name: None,
ty: 0,
2023-04-05 15:38:03 +00:00
init: 1,
),
(
name: None,
ty: 0,
2023-04-05 15:38:03 +00:00
init: 2,
),
2021-02-08 17:30:21 +00:00
(
name: None,
ty: 0,
2023-04-05 15:38:03 +00:00
init: 3,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 0,
2023-04-05 15:38:03 +00:00
init: 4,
2021-02-08 17:30:21 +00:00
),
(
name: None,
2023-04-05 15:38:03 +00:00
ty: 1,
init: 8,
2021-02-08 17:30:21 +00:00
),
(
name: None,
2023-04-05 15:38:03 +00:00
ty: 2,
init: 9,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 2,
2023-04-05 15:38:03 +00:00
init: 10,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 2,
2023-04-05 15:38:03 +00:00
init: 11,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 0,
2023-04-05 15:38:03 +00:00
init: 12,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 13,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 14,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 15,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 16,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 17,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 18,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 19,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 20,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 21,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 22,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 23,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 24,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 25,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 26,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 27,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 28,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 29,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 30,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 31,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 32,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 33,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 34,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 35,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 36,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 8,
2023-04-05 15:38:03 +00:00
init: 37,
2021-02-08 17:30:21 +00:00
),
],
overrides: [],
2021-02-08 17:30:21 +00:00
global_variables: [
(
name: Some("t_shadow"),
2022-01-25 23:29:02 +00:00
space: Handle,
binding: Some((
2021-02-08 17:30:21 +00:00
group: 0,
binding: 2,
)),
ty: 6,
2021-02-08 17:30:21 +00:00
init: None,
),
(
name: Some("sampler_shadow"),
2022-01-25 23:29:02 +00:00
space: Handle,
binding: Some((
2021-02-08 17:30:21 +00:00
group: 0,
binding: 3,
)),
ty: 29,
2021-02-08 17:30:21 +00:00
init: None,
),
(
name: Some("u_globals"),
2022-01-25 23:29:02 +00:00
space: Uniform,
binding: Some((
2021-02-08 17:30:21 +00:00
group: 0,
binding: 0,
)),
ty: 12,
2021-02-08 17:30:21 +00:00
init: None,
),
(
name: Some("s_lights"),
2022-01-25 23:29:02 +00:00
space: Storage(
2023-06-01 13:40:47 +00:00
access: ("LOAD"),
),
binding: Some((
2021-02-08 17:30:21 +00:00
group: 0,
binding: 1,
)),
ty: 19,
2021-02-08 17:30:21 +00:00
init: None,
),
(
name: Some("in_position_fs"),
2022-01-25 23:29:02 +00:00
space: Private,
binding: None,
ty: 3,
2021-02-08 17:30:21 +00:00
init: None,
),
(
name: Some("in_normal_fs"),
2022-01-25 23:29:02 +00:00
space: Private,
binding: None,
ty: 1,
2021-02-08 17:30:21 +00:00
init: None,
),
(
name: Some("out_color_fs"),
2022-01-25 23:29:02 +00:00
space: Private,
binding: None,
ty: 3,
2021-02-08 17:30:21 +00:00
init: None,
),
],
global_expressions: [
2023-04-05 15:38:03 +00:00
Literal(F32(0.0)),
Literal(F32(1.0)),
Literal(F32(0.5)),
Literal(F32(-0.5)),
Literal(F32(0.05)),
Constant(4),
Constant(4),
Constant(4),
2023-04-05 15:38:03 +00:00
Compose(
ty: 1,
2023-04-05 15:38:03 +00:00
components: [
5,
2023-04-05 15:38:03 +00:00
6,
7,
],
),
Literal(U32(10)),
Literal(U32(0)),
Literal(U32(1)),
Literal(F32(0.0)),
Literal(I32(0)),
Literal(I32(0)),
Literal(I32(0)),
Literal(I32(0)),
Literal(I32(0)),
Literal(I32(1)),
Literal(I32(0)),
Literal(I32(0)),
Literal(I32(1)),
Literal(I32(1)),
Literal(I32(0)),
Literal(I32(1)),
Literal(I32(2)),
Literal(I32(0)),
Literal(I32(1)),
Literal(I32(2)),
Literal(I32(0)),
Literal(I32(2)),
Literal(I32(0)),
Literal(I32(0)),
Literal(I32(2)),
Literal(I32(1)),
Literal(I32(0)),
Literal(I32(2)),
Literal(I32(2)),
],
2021-02-08 17:30:21 +00:00
functions: [
(
name: None,
arguments: [
(
name: None,
ty: 2,
binding: None,
2021-02-08 17:30:21 +00:00
),
(
name: None,
ty: 3,
binding: None,
2021-02-08 17:30:21 +00:00
),
],
result: Some((
ty: 0,
binding: None,
)),
2021-02-08 17:30:21 +00:00
local_variables: [],
expressions: [
GlobalVariable(2),
GlobalVariable(5),
2021-02-08 17:30:21 +00:00
GlobalVariable(4),
GlobalVariable(0),
GlobalVariable(1),
GlobalVariable(3),
GlobalVariable(6),
Constant(15),
Constant(2),
Constant(28),
Constant(26),
Constant(24),
Constant(22),
Constant(20),
Constant(10),
Constant(7),
Constant(18),
2021-04-01 02:37:45 +00:00
Constant(3),
Constant(31),
2021-02-08 17:30:21 +00:00
Constant(29),
Constant(9),
2021-02-08 17:30:21 +00:00
Constant(27),
Constant(25),
Constant(12),
2023-04-05 15:38:03 +00:00
Constant(21),
Constant(34),
2021-02-08 17:30:21 +00:00
Constant(8),
Constant(6),
2023-04-05 15:38:03 +00:00
Constant(4),
Constant(1),
Constant(16),
2021-02-08 17:30:21 +00:00
Constant(30),
Constant(14),
Constant(32),
2021-02-08 17:30:21 +00:00
Constant(13),
Constant(23),
Constant(11),
Constant(19),
2023-04-05 15:38:03 +00:00
Constant(33),
Constant(17),
Constant(5),
Constant(0),
2021-02-08 17:30:21 +00:00
FunctionArgument(0),
FunctionArgument(1),
AccessIndex(
base: 43,
2021-02-08 17:30:21 +00:00
index: 3,
),
Binary(
op: LessEqual,
left: 44,
right: 41,
2021-02-08 17:30:21 +00:00
),
AccessIndex(
base: 43,
2021-02-08 17:30:21 +00:00
index: 0,
),
AccessIndex(
base: 43,
2021-02-08 17:30:21 +00:00
index: 1,
),
Compose(
ty: 5,
2021-02-08 17:30:21 +00:00
components: [
46,
2023-04-05 15:38:03 +00:00
47,
2021-02-08 17:30:21 +00:00
],
),
Compose(
ty: 5,
2021-02-08 17:30:21 +00:00
components: [
8,
17,
2021-02-08 17:30:21 +00:00
],
),
Binary(
op: Multiply,
left: 48,
right: 49,
2021-02-08 17:30:21 +00:00
),
AccessIndex(
base: 43,
2021-02-08 17:30:21 +00:00
index: 3,
),
Binary(
op: Divide,
left: 29,
right: 51,
2021-02-08 17:30:21 +00:00
),
Binary(
op: Multiply,
left: 50,
right: 52,
2021-02-08 17:30:21 +00:00
),
Splat(
size: Bi,
value: 8,
2021-02-08 17:30:21 +00:00
),
Binary(
op: Add,
left: 53,
right: 54,
2021-02-08 17:30:21 +00:00
),
AccessIndex(
base: 55,
2021-02-08 17:30:21 +00:00
index: 0,
),
AccessIndex(
base: 55,
2021-02-08 17:30:21 +00:00
index: 1,
),
As(
expr: 42,
2021-02-08 17:30:21 +00:00
kind: Sint,
2021-05-06 03:10:23 +00:00
convert: None,
2021-02-08 17:30:21 +00:00
),
As(
expr: 58,
2021-02-08 17:30:21 +00:00
kind: Float,
2021-05-06 03:10:23 +00:00
convert: Some(4),
2021-02-08 17:30:21 +00:00
),
Compose(
ty: 1,
2021-02-08 17:30:21 +00:00
components: [
56,
2023-04-05 15:38:03 +00:00
57,
59,
2021-02-08 17:30:21 +00:00
],
),
AccessIndex(
base: 43,
2021-02-08 17:30:21 +00:00
index: 2,
),
AccessIndex(
base: 43,
2021-02-08 17:30:21 +00:00
index: 3,
),
Binary(
op: Divide,
left: 29,
right: 62,
2021-02-08 17:30:21 +00:00
),
Binary(
op: Multiply,
left: 61,
right: 63,
2021-02-08 17:30:21 +00:00
),
AccessIndex(
base: 60,
2021-02-08 17:30:21 +00:00
index: 0,
),
AccessIndex(
base: 60,
2021-02-08 17:30:21 +00:00
index: 1,
),
Compose(
ty: 5,
2021-02-08 17:30:21 +00:00
components: [
65,
2023-04-05 15:38:03 +00:00
66,
2021-02-08 17:30:21 +00:00
],
),
AccessIndex(
base: 60,
2021-02-08 17:30:21 +00:00
index: 2,
),
As(
expr: 68,
kind: Sint,
2021-05-06 03:10:23 +00:00
convert: Some(4),
2021-02-08 17:30:21 +00:00
),
ImageSample(
image: 3,
sampler: 4,
2021-12-15 05:29:07 +00:00
gather: None,
coordinate: 67,
array_index: Some(69),
2021-02-08 17:30:21 +00:00
offset: None,
level: Zero,
depth_ref: Some(64),
2021-02-08 17:30:21 +00:00
),
],
named_expressions: {},
2021-02-08 17:30:21 +00:00
body: [
Emit((
2023-04-05 15:38:03 +00:00
start: 44,
end: 46,
)),
2021-02-08 17:30:21 +00:00
If(
condition: 45,
2021-02-08 17:30:21 +00:00
accept: [
Return(
value: Some(29),
2021-02-08 17:30:21 +00:00
),
],
reject: [],
),
Emit((
2023-04-05 15:38:03 +00:00
start: 46,
end: 71,
)),
2021-02-08 17:30:21 +00:00
Return(
value: Some(70),
2021-02-08 17:30:21 +00:00
),
],
),
(
name: Some("fs_main"),
arguments: [],
result: None,
local_variables: [
(
name: Some("color"),
ty: 1,
init: Some(42),
),
(
name: Some("i"),
ty: 2,
init: Some(44),
),
],
expressions: [
GlobalVariable(2),
GlobalVariable(5),
GlobalVariable(4),
GlobalVariable(0),
GlobalVariable(1),
GlobalVariable(3),
GlobalVariable(6),
Constant(15),
Constant(2),
Constant(28),
Constant(26),
Constant(24),
Constant(22),
Constant(20),
Constant(10),
Constant(7),
Constant(18),
2021-04-01 02:37:45 +00:00
Constant(3),
Constant(31),
Constant(29),
Constant(9),
Constant(27),
Constant(25),
Constant(12),
2023-04-05 15:38:03 +00:00
Constant(21),
Constant(34),
Constant(8),
Constant(6),
2023-04-05 15:38:03 +00:00
Constant(4),
Constant(1),
Constant(16),
Constant(30),
Constant(14),
Constant(32),
Constant(13),
Constant(23),
Constant(11),
Constant(19),
2023-04-05 15:38:03 +00:00
Constant(33),
Constant(17),
Constant(5),
Constant(0),
Constant(5),
LocalVariable(0),
Constant(7),
LocalVariable(1),
Load(
pointer: 45,
),
AccessIndex(
base: 0,
index: 0,
),
Access(
base: 47,
index: 36,
),
Load(
pointer: 48,
),
Math(
fun: Min,
arg: 49,
arg1: Some(27),
arg2: None,
arg3: None,
),
Binary(
op: GreaterEqual,
left: 46,
right: 50,
),
Load(
pointer: 43,
),
Load(
pointer: 45,
),
AccessIndex(
base: 5,
index: 0,
),
Load(
pointer: 45,
),
Access(
base: 54,
index: 55,
),
AccessIndex(
base: 56,
index: 0,
),
Load(
pointer: 57,
),
Load(
pointer: 2,
),
Binary(
op: Multiply,
left: 58,
right: 59,
),
CallResult(0),
Load(
pointer: 1,
),
Math(
fun: Normalize,
arg: 62,
arg1: None,
arg2: None,
arg3: None,
),
AccessIndex(
base: 5,
index: 0,
),
Load(
pointer: 45,
),
Access(
base: 64,
index: 65,
),
AccessIndex(
base: 66,
index: 1,
),
Access(
base: 67,
index: 30,
),
Load(
pointer: 68,
),
AccessIndex(
base: 5,
index: 0,
),
Load(
pointer: 45,
),
Access(
base: 70,
index: 71,
),
AccessIndex(
base: 72,
index: 1,
),
Access(
base: 73,
index: 37,
),
Load(
pointer: 74,
),
AccessIndex(
base: 5,
index: 0,
),
Load(
pointer: 45,
),
Access(
base: 76,
index: 77,
),
AccessIndex(
base: 78,
index: 1,
),
Access(
base: 79,
index: 12,
),
Load(
pointer: 80,
),
Compose(
ty: 1,
components: [
69,
75,
81,
],
),
Access(
base: 2,
index: 35,
),
Load(
pointer: 83,
),
Access(
base: 2,
index: 11,
),
Load(
pointer: 85,
),
Access(
base: 2,
index: 22,
),
Load(
pointer: 87,
),
Compose(
ty: 1,
components: [
84,
86,
88,
],
),
Binary(
op: Subtract,
left: 82,
right: 89,
),
Math(
fun: Normalize,
arg: 90,
arg1: None,
arg2: None,
arg3: None,
),
Math(
fun: Dot,
arg: 63,
arg1: Some(91),
arg2: None,
arg3: None,
),
Math(
fun: Max,
arg: 41,
arg1: Some(92),
arg2: None,
arg3: None,
),
Binary(
op: Multiply,
left: 61,
right: 93,
),
AccessIndex(
base: 5,
index: 0,
),
Load(
pointer: 45,
),
Access(
base: 95,
index: 96,
),
AccessIndex(
base: 97,
index: 2,
),
Access(
base: 98,
index: 9,
),
Load(
pointer: 99,
),
AccessIndex(
base: 5,
index: 0,
),
Load(
pointer: 45,
),
Access(
base: 101,
index: 102,
),
AccessIndex(
base: 103,
index: 2,
),
Access(
base: 104,
index: 18,
),
Load(
pointer: 105,
),
AccessIndex(
base: 5,
index: 0,
),
Load(
pointer: 45,
),
Access(
base: 107,
index: 108,
),
AccessIndex(
base: 109,
index: 2,
),
Access(
base: 110,
index: 25,
),
Load(
pointer: 111,
),
Compose(
ty: 1,
components: [
100,
106,
112,
],
),
Binary(
op: Multiply,
left: 113,
right: 94,
),
Binary(
op: Add,
left: 52,
right: 114,
),
Load(
pointer: 45,
),
Binary(
op: Add,
left: 116,
right: 26,
),
Load(
pointer: 43,
),
Compose(
ty: 3,
components: [
118,
29,
],
),
],
named_expressions: {},
body: [
Loop(
body: [
Emit((
2023-04-19 13:16:46 +00:00
start: 46,
end: 52,
)),
If(
condition: 51,
accept: [
Break,
],
reject: [],
),
Emit((
2023-04-19 13:16:46 +00:00
start: 52,
end: 61,
)),
Call(
function: 0,
arguments: [
53,
60,
],
result: Some(61),
),
Emit((
2023-04-19 13:16:46 +00:00
start: 62,
end: 116,
)),
Store(
pointer: 43,
value: 115,
),
Continue,
],
continuing: [
Emit((
2023-04-19 13:16:46 +00:00
start: 116,
end: 118,
)),
Store(
pointer: 45,
value: 117,
),
],
break_if: None,
),
Emit((
2023-04-19 13:16:46 +00:00
start: 118,
end: 120,
)),
Store(
pointer: 6,
value: 119,
),
Return(
value: None,
),
],
),
2021-02-08 17:30:21 +00:00
],
2021-03-07 03:47:21 +00:00
entry_points: [
(
name: "fs_main",
stage: Fragment,
2021-02-08 17:30:21 +00:00
early_depth_test: None,
workgroup_size: (0, 0, 0),
function: (
name: Some("fs_main_wrap"),
arguments: [
2021-02-08 17:30:21 +00:00
(
name: Some("in_normal_fs"),
ty: 1,
binding: Some(Location(
location: 0,
second_blend_source: false,
interpolation: Some(Perspective),
sampling: Some(Center),
)),
2021-02-08 17:30:21 +00:00
),
(
name: Some("in_position_fs"),
ty: 3,
binding: Some(Location(
location: 1,
second_blend_source: false,
interpolation: Some(Perspective),
sampling: Some(Center),
)),
2021-02-08 17:30:21 +00:00
),
],
result: Some((
ty: 3,
binding: Some(Location(
location: 0,
second_blend_source: false,
interpolation: None,
sampling: None,
)),
)),
local_variables: [],
2021-02-08 17:30:21 +00:00
expressions: [
FunctionArgument(0),
GlobalVariable(5),
FunctionArgument(1),
GlobalVariable(4),
GlobalVariable(6),
Load(
pointer: 4,
2021-02-08 17:30:21 +00:00
),
],
named_expressions: {},
body: [
Store(
pointer: 1,
value: 0,
),
Store(
pointer: 3,
value: 2,
),
Call(
function: 1,
arguments: [],
result: None,
2021-02-08 17:30:21 +00:00
),
Emit((
start: 5,
end: 6,
)),
2021-02-08 17:30:21 +00:00
Return(
value: Some(5),
2021-02-08 17:30:21 +00:00
),
],
),
),
2021-03-07 03:47:21 +00:00
],
2021-04-14 18:20:48 +00:00
)