wgpu/tests/out/ir/shadow.ron

1411 lines
35 KiB
Plaintext
Raw Normal View History

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