Skip to content

Adds CTS test coverage for the snorm10-10-10-2 vertex format. - #4695

Open
wangra-google wants to merge 1 commit into
gpuweb:mainfrom
wangra-google:add-rgba10a2snorm-vertex-format
Open

Adds CTS test coverage for the snorm10-10-10-2 vertex format.#4695
wangra-google wants to merge 1 commit into
gpuweb:mainfrom
wangra-google:add-rgba10a2snorm-vertex-format

Conversation

@wangra-google

Copy link
Copy Markdown
  • Adds snorm10-10-10-2 to kVertexFormatInfo in capability_info.ts (with an explicit cast until @webgpu/types is updated).
  • Adds signed 10-10-10-2 bit-packing (makeRgb10a2Signed) and normalization (normalizeRgb10a2Signed) test helpers.
  • Adds packed format test data in correctness.spec.ts to verify conversion from raw vertex data to vec4<f32> in the vertex shader.

Issue: gpuweb/gpuweb#6292


Requirements for PR author:

  • All missing test coverage is tracked with "TODO" or .unimplemented().
  • New helpers are /** documented */ and new helper files are found in helper_index.txt.
  • Test behaves as expected in a WebGPU implementation. (If not passing, explain above.)
  • Test have be tested with compatibility mode validation enabled and behave as expected. (If not passing, explain above.)

Requirements for reviewer sign-off:

  • Tests are properly located.
  • Test descriptions are accurate and complete.
  • Tests provide complete coverage (including validation control cases). Missing coverage MUST be covered by TODOs.
  • Tests avoid over-parameterization (see case count report).

When landing this PR, be sure to make any necessary issue status updates.

* Adds `snorm10-10-10-2` to `kVertexFormatInfo` in `capability_info.ts` (with an explicit cast until `@webgpu/types` is updated).
* Adds signed 10-10-10-2 bit-packing (`makeRgb10a2Signed`) and normalization (`normalizeRgb10a2Signed`) test helpers.
* Adds packed format test data in `correctness.spec.ts` to verify conversion from raw vertex data to `vec4<f32>` in the vertex shader.

Issue: gpuweb/gpuweb#6292

<hr>

**Requirements for PR author:**

- [x] All missing test coverage is tracked with "TODO" or `.unimplemented()`.
- [x] New helpers are `/** documented */` and new helper files are found in `helper_index.txt`.
- [x] Test behaves as expected in a WebGPU implementation. (If not passing, explain above.)
- [x] Test have be tested with compatibility mode validation enabled and behave as expected. (If not passing, explain above.)

**Requirements for [reviewer sign-off](https://github.com/gpuweb/cts/blob/main/docs/reviews.md):**

- [ ] Tests are properly located.
- [ ] [Test descriptions](https://github.com/gpuweb/cts/blob/main/docs/intro/plans.md) are accurate and complete.
- [ ] Tests provide complete coverage (including validation control cases). **Missing coverage MUST be covered by TODOs.**
- [ ] Tests avoid [over-parameterization](https://github.com/gpuweb/cts/blob/main/docs/organization.md#parameterization) (see case count report).

When landing this PR, be sure to make any necessary issue status updates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant