summaryrefslogtreecommitdiffstats
path: root/dom/webgpu/tests/cts/checkout/src/webgpu/shader/execution/expression/call/builtin/derivatives.cache.ts
blob: ebd414f395fe32342e1049c2262a9a8180ce8407 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { FP } from '../../../../../util/floating_point.js';
import { sparseScalarF32Range } from '../../../../../util/math.js';
import { makeCaseCache } from '../../case_cache.js';

export const d = makeCaseCache('derivatives', {
  scalar: () => {
    return FP.f32.generateScalarPairToIntervalCases(
      sparseScalarF32Range(),
      sparseScalarF32Range(),
      'unfiltered',
      FP.f32.subtractionInterval
    );
  },
});