mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-01-09 21:28:07 -05:00
218 lines
5.3 KiB
Plaintext
218 lines
5.3 KiB
Plaintext
(
|
|
types: [
|
|
(
|
|
name: None,
|
|
inner: Scalar((
|
|
kind: Bool,
|
|
width: 1,
|
|
)),
|
|
),
|
|
(
|
|
name: None,
|
|
inner: Scalar((
|
|
kind: Float,
|
|
width: 4,
|
|
)),
|
|
),
|
|
(
|
|
name: None,
|
|
inner: Scalar((
|
|
kind: Uint,
|
|
width: 4,
|
|
)),
|
|
),
|
|
],
|
|
special_types: (
|
|
ray_desc: None,
|
|
ray_intersection: None,
|
|
ray_vertex_return: None,
|
|
predeclared_types: {},
|
|
),
|
|
constants: [],
|
|
overrides: [
|
|
(
|
|
name: Some("has_point_light"),
|
|
id: Some(0),
|
|
ty: 0,
|
|
init: Some(0),
|
|
),
|
|
(
|
|
name: Some("specular_param"),
|
|
id: Some(1200),
|
|
ty: 1,
|
|
init: Some(1),
|
|
),
|
|
(
|
|
name: Some("gain"),
|
|
id: Some(1300),
|
|
ty: 1,
|
|
init: None,
|
|
),
|
|
(
|
|
name: Some("width"),
|
|
id: None,
|
|
ty: 1,
|
|
init: Some(2),
|
|
),
|
|
(
|
|
name: Some("depth"),
|
|
id: None,
|
|
ty: 1,
|
|
init: None,
|
|
),
|
|
(
|
|
name: Some("height"),
|
|
id: None,
|
|
ty: 1,
|
|
init: Some(5),
|
|
),
|
|
(
|
|
name: Some("inferred_f32"),
|
|
id: None,
|
|
ty: 1,
|
|
init: Some(6),
|
|
),
|
|
(
|
|
name: Some("auto_conversion"),
|
|
id: None,
|
|
ty: 2,
|
|
init: Some(7),
|
|
),
|
|
],
|
|
global_variables: [
|
|
(
|
|
name: Some("gain_x_10"),
|
|
space: Private,
|
|
binding: None,
|
|
ty: 1,
|
|
init: Some(10),
|
|
),
|
|
(
|
|
name: Some("store_override"),
|
|
space: Private,
|
|
binding: None,
|
|
ty: 1,
|
|
init: None,
|
|
),
|
|
],
|
|
global_expressions: [
|
|
Literal(Bool(true)),
|
|
Literal(F32(2.3)),
|
|
Literal(F32(0.0)),
|
|
Override(4),
|
|
Literal(F32(2.0)),
|
|
Binary(
|
|
op: Multiply,
|
|
left: 4,
|
|
right: 3,
|
|
),
|
|
Literal(F32(2.718)),
|
|
Literal(U32(0)),
|
|
Override(2),
|
|
Literal(F32(10.0)),
|
|
Binary(
|
|
op: Multiply,
|
|
left: 8,
|
|
right: 9,
|
|
),
|
|
],
|
|
functions: [],
|
|
entry_points: [
|
|
(
|
|
name: "main",
|
|
stage: Compute,
|
|
early_depth_test: None,
|
|
workgroup_size: (1, 1, 1),
|
|
workgroup_size_overrides: None,
|
|
function: (
|
|
name: Some("main"),
|
|
arguments: [],
|
|
result: None,
|
|
local_variables: [
|
|
(
|
|
name: Some("t"),
|
|
ty: 1,
|
|
init: Some(2),
|
|
),
|
|
(
|
|
name: Some("x"),
|
|
ty: 0,
|
|
init: None,
|
|
),
|
|
(
|
|
name: Some("gain_x_100"),
|
|
ty: 1,
|
|
init: None,
|
|
),
|
|
],
|
|
expressions: [
|
|
Override(5),
|
|
Literal(F32(5.0)),
|
|
Binary(
|
|
op: Multiply,
|
|
left: 0,
|
|
right: 1,
|
|
),
|
|
Override(0),
|
|
Unary(
|
|
op: LogicalNot,
|
|
expr: 3,
|
|
),
|
|
LocalVariable(1),
|
|
GlobalVariable(0),
|
|
Load(
|
|
pointer: 6,
|
|
),
|
|
Literal(F32(10.0)),
|
|
Binary(
|
|
op: Multiply,
|
|
left: 7,
|
|
right: 8,
|
|
),
|
|
LocalVariable(2),
|
|
GlobalVariable(1),
|
|
Override(2),
|
|
],
|
|
named_expressions: {
|
|
4: "a",
|
|
},
|
|
body: [
|
|
Emit((
|
|
start: 2,
|
|
end: 3,
|
|
)),
|
|
Emit((
|
|
start: 4,
|
|
end: 5,
|
|
)),
|
|
Store(
|
|
pointer: 5,
|
|
value: 4,
|
|
),
|
|
Emit((
|
|
start: 7,
|
|
end: 8,
|
|
)),
|
|
Emit((
|
|
start: 9,
|
|
end: 10,
|
|
)),
|
|
Store(
|
|
pointer: 10,
|
|
value: 9,
|
|
),
|
|
Store(
|
|
pointer: 11,
|
|
value: 12,
|
|
),
|
|
Return(
|
|
value: None,
|
|
),
|
|
],
|
|
diagnostic_filter_leaf: None,
|
|
),
|
|
),
|
|
],
|
|
diagnostic_filters: [],
|
|
diagnostic_filter_leaf: None,
|
|
) |