(
    features: "MAPPABLE_PRIMARY_BUFFERS | PIPELINE_STATISTICS_QUERY",
    expectations: [
        (
            name: "Queried number of compute invocations is correct",
            buffer: (index: 0, epoch: 1),
            offset: 0,
            data: U64([0x0, 0x2A]),
        ),
    ],
    actions: [
        CreatePipelineLayout(Id(0, 1), (
            label: Some("empty"),
            bind_group_layouts: [],
            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,
                ),
            ),
        ),
        CreateQuerySet(
            id: Id(0, 1),
            desc: (
                label: Some("Compute Invocation QuerySet"),
                count: 2,
                ty: PipelineStatistics("FRAGMENT_SHADER_INVOCATIONS | COMPUTE_SHADER_INVOCATIONS"),
            ),
        ),
        CreateBuffer(
            Id(0, 1),
            (
                label: Some("Compute Invocation Result Buffer"),
                size: 16,
                usage: "COPY_DST | MAP_READ | QUERY_RESOLVE",
                mapped_at_creation: false,
            ),
        ),
        Submit(1, [
            RunComputePass(
                base: (
                    commands: [
                        SetPipeline(Id(0, 1)),
                        BeginPipelineStatisticsQuery(
                            query_set_id: Id(0, 1),
                            query_index: 0,
                        ),
                        Dispatch((2, 3, 7,)),
                        EndPipelineStatisticsQuery,
                    ],
                    dynamic_offsets: [],
                    string_data: [],
                    push_constant_data: [],
                ),
            ),
            ResolveQuerySet(
                query_set_id: Id(0, 1),
                start_query: 0,
                query_count: 1,
                destination: Id(0, 1),
                destination_offset: 0,
            )
        ]),
    ],
)
