diff options
Diffstat (limited to 'dom/webgpu/tests/cts/checkout/src/webgpu/api/operation/render_pipeline/alpha_to_coverage.spec.ts')
-rw-r--r-- | dom/webgpu/tests/cts/checkout/src/webgpu/api/operation/render_pipeline/alpha_to_coverage.spec.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dom/webgpu/tests/cts/checkout/src/webgpu/api/operation/render_pipeline/alpha_to_coverage.spec.ts b/dom/webgpu/tests/cts/checkout/src/webgpu/api/operation/render_pipeline/alpha_to_coverage.spec.ts new file mode 100644 index 0000000000..0b234759ef --- /dev/null +++ b/dom/webgpu/tests/cts/checkout/src/webgpu/api/operation/render_pipeline/alpha_to_coverage.spec.ts @@ -0,0 +1,19 @@ +export const description = ` +TODO: +- for sampleCount = 4, alphaToCoverageEnabled = true and various combinations of: + - rasterization masks + - increasing alpha values of the first color output including { < 0, = 0, = 1/16, = 2/16, ..., = 15/16, = 1, > 1 } + - alpha values of the second color output = { 0, 0.5, 1.0 }. +- test that for a single pixel in { first, second } { color, depth, stencil } output the final sample mask is applied to it, moreover: + - if alpha is 0.0 or less then alpha to coverage mask is 0x0, + - if alpha is 1.0 or greater then alpha to coverage mask is 0xFFFFFFFF, + - that the number of bits in the alpha to coverage mask is non-decreasing, + - that the computation of alpha to coverage mask doesn't depend on any other color output than first, + - (not included in the spec): that once a sample is included in the alpha to coverage sample mask + it will be included for any alpha greater than or equal to the current value. +`; + +import { makeTestGroup } from '../../../../common/framework/test_group.js'; +import { GPUTest } from '../../../gpu_test.js'; + +export const g = makeTestGroup(GPUTest); |