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