Hierarchy

Constructors

Properties

params: TestParams

The case parameters for this test fixture shared state. Subcase params are not included.

Accessors

Methods

  • returns true iff the langFeature is supported

    Parameters

    • langFeature: "readonly_and_readwrite_storage_textures" | "packed_4x8_integer_dot_product" | "unrestricted_pointer_parameters" | "pointer_composite_access"

    Returns boolean

  • Some tests or cases need particular feature flags or limits to be enabled. Call this function with a descriptor or feature name (or undefined) to select a GPUDevice with matching capabilities. If this isn't called, a default device is provided.

    If the request isn't supported, throws a SkipTestCase exception to skip the entire test case.

    Parameters

    Returns void

  • Convenience function for selectDeviceOrSkipTestCase. Select a device with the features required by these query type(s). If the device creation fails, then skip the test case.

    Parameters

    • types: GPUQueryType | GPUQueryType[]

    Returns void

  • Convenience function for selectDeviceOrSkipTestCase. Select a device with the features required by these texture format(s). If the device creation fails, then skip the test case.

    Parameters

    • formats: undefined | GPUTextureFormat | (undefined | GPUTextureFormat)[]

    Returns void

  • Some tests or cases need particular feature flags or limits to be enabled. Call this function with a descriptor or feature name (or undefined) to add features or limits required by the subcase. If the features or limits are not available a SkipTestCase exception will be thrown to skip the entire test case.

    Parameters

    Returns void

  • Parameters

    • Rest ...formats: (undefined | GPUTextureFormat)[]

    Returns void

  • Skips test if the given interpolation type or sampling is not supported.

    Parameters

    • __namedParameters: {
          sampling?: "center" | "centroid" | "sample" | "first" | "either";
          type?: "flat" | "perspective" | "linear";
      }
      • Optional sampling?: "center" | "centroid" | "sample" | "first" | "either"
      • Optional type?: "flat" | "perspective" | "linear"

    Returns void

  • Skips this test case if the langFeature is not supported.

    Parameters

    • langFeature: "readonly_and_readwrite_storage_textures" | "packed_4x8_integer_dot_product" | "unrestricted_pointer_parameters" | "pointer_composite_access"

    Returns void

  • Skips this test case if the langFeature is supported.

    Parameters

    • langFeature: "readonly_and_readwrite_storage_textures" | "packed_4x8_integer_dot_product" | "unrestricted_pointer_parameters" | "pointer_composite_access"

    Returns void

  • Some tests need a second device which is different from the first. This requests a second device so it will be available during the test. If it is not called, no second device will be available. The second device will be created with the same features and limits as the first device.

    Returns void

Generated using TypeDoc