• Runs a subgroup builtin test for fragment shaders

    This test draws a full screen triangle. Tests should avoid checking the last row or column to avoid helper invocations. Underlying APIs do not consistently guarantee whether helper invocations participate in subgroup operations.

    Parameters

    • t: SubgroupTest

      The base test

    • format: GPUTextureFormat

      The framebuffer format

    • fsShader: string

      The fragment shader with the following interface: Location 0 output is framebuffer with format Group 0 binding 0 is input data

    • width: number

      The framebuffer width

    • height: number

      The framebuffer height

    • inputData: Uint32Array | Float16Array | Float32Array

      The input data

    • checker: ((data) => undefined | Error)

      A functor to check the framebuffer values

        • (data): undefined | Error
        • Parameters

          • data: Uint32Array

          Returns undefined | Error

    Returns Promise<void>

Generated using TypeDoc