• Runs compute shader subgroup test

    The test makes the following assumptions:

    • group(0) binding(0) is a storage buffer for input data
    • group(0) binding(1) is an output storage buffer for outputUintsPerElement * wgSize uints
    • group(0) binding(2) is an output storage buffer for 2 * wgSize uints

    Parameters

    • t: GPUTest

      The base test

    • wgsl: string

      The shader code

    • wgSize: number[]
    • outputUintsPerElement: number

      number of uints output per invocation

    • inputData: Uint32Array

      the input data

    • checkFunction: ((metadata, output) => undefined | Error)

      a functor that takes the output storage buffer data to check result validity

        • (metadata, output): undefined | Error
        • Parameters

          • metadata: Uint32Array
          • output: Uint32Array

          Returns undefined | Error

    Returns Promise<void>

Generated using TypeDoc