diff options
Diffstat (limited to 'dom/webgpu/tests/cts/checkout/src/webgpu/shader/execution/expression/call/builtin/dpdx.spec.ts')
-rw-r--r-- | dom/webgpu/tests/cts/checkout/src/webgpu/shader/execution/expression/call/builtin/dpdx.spec.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dom/webgpu/tests/cts/checkout/src/webgpu/shader/execution/expression/call/builtin/dpdx.spec.ts b/dom/webgpu/tests/cts/checkout/src/webgpu/shader/execution/expression/call/builtin/dpdx.spec.ts new file mode 100644 index 0000000000..287a51c699 --- /dev/null +++ b/dom/webgpu/tests/cts/checkout/src/webgpu/shader/execution/expression/call/builtin/dpdx.spec.ts @@ -0,0 +1,23 @@ +export const description = ` +Execution tests for the 'dpdx' builtin function + +T is f32 or vecN<f32> +fn dpdx(e:T) -> T +Partial derivative of e with respect to window x coordinates. +The result is the same as either dpdxFine(e) or dpdxCoarse(e). + +`; + +import { makeTestGroup } from '../../../../../../common/framework/test_group.js'; +import { GPUTest } from '../../../../../gpu_test.js'; +import { allInputSources } from '../../expression.js'; + +export const g = makeTestGroup(GPUTest); + +g.test('f32') + .specURL('https://www.w3.org/TR/WGSL/#derivative-builtin-functions') + .desc(`f32 tests`) + .params(u => + u.combine('inputSource', allInputSources).combine('vectorize', [undefined, 2, 3, 4] as const) + ) + .unimplemented(); |