wgpu/tests/out/shadow.ron

1568 lines
38 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: Vector(
size: Bi,
kind: Float,
width: 4,
),
),
(
name: None,
inner: Scalar(
kind: Sint,
width: 4,
),
),
(
name: None,
inner: Pointer(
base: 2,
class: Function,
),
),
(
name: None,
inner: Pointer(
base: 3,
class: Function,
),
),
2021-02-08 17:30:21 +00:00
(
name: None,
inner: Vector(
size: Quad,
kind: Uint,
width: 4,
),
),
(
name: Some("Globals"),
inner: Struct(
level: Root,
2021-02-08 17:30:21 +00:00
members: [
(
name: Some("num_lights"),
ty: 13,
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: 14,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 13,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 3,
class: Uniform,
),
),
2021-02-08 17:30:21 +00:00
(
name: None,
inner: Matrix(
columns: Quad,
rows: Quad,
width: 4,
),
),
(
name: Some("Light"),
inner: Struct(
level: Normal(
alignment: 16,
),
2021-02-08 17:30:21 +00:00
members: [
(
name: Some("proj"),
ty: 18,
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: 19,
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(
level: Root,
2021-02-08 17:30:21 +00:00
members: [
(
name: Some("data"),
ty: 20,
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: 21,
class: Storage,
),
),
(
name: None,
inner: Pointer(
base: 20,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 19,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 18,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 4,
class: Private,
),
),
(
name: None,
inner: Pointer(
base: 2,
class: Private,
),
),
(
name: None,
inner: Pointer(
base: 20,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 19,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 4,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 1,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 20,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 19,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 4,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 1,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 20,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 19,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 4,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 1,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 1,
class: Private,
),
),
(
name: None,
inner: Pointer(
base: 1,
class: Private,
),
),
(
name: None,
inner: Pointer(
base: 1,
class: Private,
),
),
(
name: None,
inner: Pointer(
base: 20,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 19,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 4,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 1,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 20,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 19,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 4,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 1,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 20,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 19,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 4,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 1,
class: Uniform,
),
),
(
name: None,
inner: Pointer(
base: 4,
class: Private,
),
),
2021-02-08 17:30:21 +00:00
(
name: None,
inner: Image(
dim: D2,
arrayed: true,
class: Depth,
),
),
(
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),
),
),
(
name: None,
specialization: None,
inner: Scalar(
width: 4,
value: Float(1),
),
),
(
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),
),
),
(
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"),
class: Handle,
binding: Some((
2021-02-08 17:30:21 +00:00
group: 0,
binding: 2,
)),
ty: 56,
2021-02-08 17:30:21 +00:00
init: None,
storage_access: (
bits: 0,
),
),
(
name: Some("sampler_shadow"),
class: Handle,
binding: Some((
2021-02-08 17:30:21 +00:00
group: 0,
binding: 3,
)),
ty: 57,
2021-02-08 17:30:21 +00:00
init: None,
storage_access: (
bits: 0,
),
),
(
name: Some("u_globals"),
class: Uniform,
binding: Some((
2021-02-08 17:30:21 +00:00
group: 0,
binding: 0,
)),
ty: 14,
2021-02-08 17:30:21 +00:00
init: None,
storage_access: (
bits: 0,
),
),
(
name: Some("s_lights"),
class: Storage,
binding: Some((
2021-02-08 17:30:21 +00:00
group: 0,
binding: 1,
)),
ty: 21,
2021-02-08 17:30:21 +00:00
init: None,
storage_access: (
bits: 1,
),
),
(
name: Some("in_position_fs"),
class: Private,
binding: None,
2021-02-08 17:30:21 +00:00
ty: 4,
init: None,
storage_access: (
bits: 0,
),
),
(
name: Some("in_normal_fs"),
class: Private,
binding: None,
2021-02-08 17:30:21 +00:00
ty: 2,
init: None,
storage_access: (
bits: 0,
),
),
(
name: Some("out_color_fs"),
class: Private,
binding: None,
2021-02-08 17:30:21 +00:00
ty: 4,
init: None,
storage_access: (
bits: 0,
),
),
],
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: 9,
components: [
2021-04-01 02:37:45 +00:00
51,
52,
2021-02-08 17:30:21 +00:00
],
),
Compose(
ty: 9,
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,
convert: false,
),
As(
2021-04-01 02:37:45 +00:00
expr: 63,
2021-02-08 17:30:21 +00:00
kind: Float,
convert: true,
),
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-02-08 17:30:21 +00:00
convert: true,
),
ImageSample(
image: 4,
sampler: 5,
2021-04-01 02:37:45 +00:00
coordinate: 72,
array_index: Some(74),
2021-02-08 17:30:21 +00:00
offset: None,
2021-04-01 02:37:45 +00:00
level: Exact(25),
depth_ref: Some(69),
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,
),
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,
),
Call(1),
Load(
pointer: 2,
),
Math(
fun: Normalize,
2021-04-01 02:37:45 +00:00
arg: 65,
arg1: None,
arg2: 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,
),
Math(
fun: Dot,
2021-04-01 02:37:45 +00:00
arg: 66,
arg1: Some(94),
arg2: None,
),
Math(
fun: Max,
2021-04-01 02:37:45 +00:00
arg: 46,
arg1: Some(95),
arg2: 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,
],
),
],
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,
),
],
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: None,
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(0, Some(Perspective))),
2021-02-08 17:30:21 +00:00
),
(
name: Some("in_position_fs"),
ty: 4,
binding: Some(Location(1, Some(Perspective))),
2021-02-08 17:30:21 +00:00
),
],
result: Some((
ty: 4,
binding: Some(Location(0, None)),
)),
local_variables: [],
2021-02-08 17:30:21 +00:00
expressions: [
GlobalVariable(6),
FunctionArgument(0),
2021-02-08 17:30:21 +00:00
GlobalVariable(5),
FunctionArgument(1),
2021-02-08 17:30:21 +00:00
GlobalVariable(7),
Load(
pointer: 5,
2021-02-08 17:30:21 +00:00
),
],
body: [
Store(
pointer: 1,
value: 2,
),
Store(
pointer: 3,
value: 4,
),
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
)