mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
119 lines
2.8 KiB
Plaintext
119 lines
2.8 KiB
Plaintext
(
|
|
header: (
|
|
version: (1, 0, 0),
|
|
generator: 0,
|
|
),
|
|
types: [
|
|
(
|
|
name: None,
|
|
inner: Vector(
|
|
size: Bi,
|
|
kind: Float,
|
|
width: 4,
|
|
),
|
|
),
|
|
(
|
|
name: None,
|
|
inner: Vector(
|
|
size: Quad,
|
|
kind: Float,
|
|
width: 4,
|
|
),
|
|
),
|
|
(
|
|
name: None,
|
|
inner: Scalar(
|
|
kind: Float,
|
|
width: 4,
|
|
),
|
|
),
|
|
],
|
|
constants: [
|
|
(
|
|
name: None,
|
|
specialization: None,
|
|
inner: Float(1),
|
|
ty: 3,
|
|
),
|
|
(
|
|
name: None,
|
|
specialization: None,
|
|
inner: Float(0),
|
|
ty: 3,
|
|
),
|
|
],
|
|
global_variables: [
|
|
(
|
|
name: Some("a_pos"),
|
|
class: Input,
|
|
binding: Some(Location(0)),
|
|
ty: 1,
|
|
interpolation: None,
|
|
storage_access: (
|
|
bits: 0,
|
|
),
|
|
),
|
|
(
|
|
name: Some("o_pos"),
|
|
class: Output,
|
|
binding: Some(Location(0)),
|
|
ty: 2,
|
|
interpolation: None,
|
|
storage_access: (
|
|
bits: 0,
|
|
),
|
|
),
|
|
],
|
|
functions: [],
|
|
entry_points: {
|
|
(Vertex, "main"): (
|
|
early_depth_test: None,
|
|
workgroup_size: (0, 0, 0),
|
|
function: (
|
|
name: Some("main"),
|
|
parameter_types: [],
|
|
return_type: None,
|
|
global_usage: [
|
|
(
|
|
bits: 1,
|
|
),
|
|
(
|
|
bits: 2,
|
|
),
|
|
],
|
|
local_variables: [
|
|
(
|
|
name: Some("w"),
|
|
ty: 3,
|
|
init: Some(3),
|
|
),
|
|
],
|
|
expressions: [
|
|
GlobalVariable(1),
|
|
GlobalVariable(2),
|
|
Constant(1),
|
|
LocalVariable(1),
|
|
Constant(2),
|
|
Compose(
|
|
ty: 2,
|
|
components: [
|
|
1,
|
|
5,
|
|
4,
|
|
],
|
|
),
|
|
],
|
|
body: [
|
|
Block([]),
|
|
Store(
|
|
pointer: 2,
|
|
value: 6,
|
|
),
|
|
Return(
|
|
value: None,
|
|
),
|
|
],
|
|
),
|
|
),
|
|
},
|
|
) |