summaryrefslogtreecommitdiffstats
path: root/gfx/wgpu/player/tests/data/bind-group.ron
blob: 8a4ecb3c5fd241019e2567e218d6127422d4e1dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
(
    features: (bits: 0x0),
    expectations: [], //not crash!
    actions: [
        CreatePipelineLayout(Id(0, 1, Empty), (
            label: Some("empty"),
            bind_group_layouts: [],
            push_constant_ranges: [],
        )),
        CreateShaderModule(
            id: Id(0, 1, Empty),
            label: None,
            data: "empty.comp.spv",
        ),
        CreateComputePipeline(Id(0, 1, Empty), (
            label: None,
            layout: Some(Id(0, 1, Empty)),
            compute_stage: (
                module: Id(0, 1, Empty),
                entry_point: "main",
            ),
        )),
        CreateBuffer(Id(0, 1, Empty), (
            label: None,
            size: 16,
            usage: (
                bits: 64,
            ),
            mapped_at_creation: false,
        )),
        CreateBindGroupLayout(Id(0, 1, Empty), (
            label: None,
            entries: [
                (
                    binding: 0,
                    visibility: (bits: 0x3),
                    ty: Buffer(
                        ty: Uniform,
                    ),
                ),
            ],
        )),
        CreateBindGroup(Id(0, 1, Empty), (
            label: None,
            layout: Id(0, 1, Empty),
            entries: [
                (
                    binding: 0,
                    resource: Buffer((
                        buffer_id: Id(0, 1, Empty),
                        offset: 0,
                        size: None,
                    )),
                )
            ],
        )),
        Submit(1, [
            RunComputePass(
                base: (
                    commands: [
                        SetPipeline(Id(0, 1, Empty)),
                        SetBindGroup(
                            index: 0,
                            num_dynamic_offsets: 0,
                            bind_group_id: Id(0, 1, Empty),
                        ),
                    ],
                    dynamic_offsets: [],
                    string_data: [],
                    push_constant_data: [],
                ),
            ),
        ]),
    ],
)