mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 16:24:24 +00:00
85 lines
2.3 KiB
Plaintext
85 lines
2.3 KiB
Plaintext
(
|
|
features: [],
|
|
expectations: [], //not crash!
|
|
actions: [
|
|
CreateBuffer(Id(0, 1), (
|
|
label: None,
|
|
size: 16,
|
|
usage: 64,
|
|
mapped_at_creation: false,
|
|
)),
|
|
CreateBindGroupLayout(Id(0, 1), (
|
|
label: None,
|
|
entries: [
|
|
(
|
|
binding: 0,
|
|
visibility: 0x3,
|
|
ty: Buffer(
|
|
ty: Uniform,
|
|
),
|
|
),
|
|
],
|
|
)),
|
|
CreateBindGroup(Id(0, 1), (
|
|
label: None,
|
|
layout: Id(0, 1),
|
|
entries: [
|
|
(
|
|
binding: 0,
|
|
resource: Buffer((
|
|
buffer_id: Id(0, 1),
|
|
offset: 0,
|
|
size: None,
|
|
)),
|
|
)
|
|
],
|
|
)),
|
|
CreatePipelineLayout(Id(0, 1), (
|
|
label: Some("empty"),
|
|
bind_group_layouts: [
|
|
Id(0, 1),
|
|
],
|
|
push_constant_ranges: [],
|
|
)),
|
|
CreateShaderModule(
|
|
id: Id(0, 1),
|
|
desc: (
|
|
label: None,
|
|
flags: (bits: 3),
|
|
),
|
|
data: "empty.wgsl",
|
|
),
|
|
CreateComputePipeline(
|
|
id: Id(0, 1),
|
|
desc: (
|
|
label: None,
|
|
layout: Some(Id(0, 1)),
|
|
stage: (
|
|
module: Id(0, 1),
|
|
entry_point: None,
|
|
constants: {},
|
|
zero_initialize_workgroup_memory: true,
|
|
vertex_pulling_transform: false,
|
|
),
|
|
),
|
|
),
|
|
Submit(1, [
|
|
RunComputePass(
|
|
base: (
|
|
commands: [
|
|
SetBindGroup(
|
|
index: 0,
|
|
num_dynamic_offsets: 0,
|
|
bind_group_id: Some(Id(0, 1)),
|
|
),
|
|
SetPipeline(Id(0, 1)),
|
|
],
|
|
dynamic_offsets: [],
|
|
string_data: [],
|
|
push_constant_data: [],
|
|
),
|
|
),
|
|
]),
|
|
],
|
|
)
|