Skip to content

Add clamp tests - #975

Merged
zoddicus merged 5 commits into
gpuweb:mainfrom
zoddicus:addClampTests
Feb 7, 2022
Merged

zoddicus merged 5 commits into
gpuweb:mainfrom
zoddicus:addClampTests

Conversation

@zoddicus

@zoddicus zoddicus commented Feb 2, 2022 •

Copy link
Copy Markdown
Contributor

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.)

Requirements for reviewer sign-off:

  • Tests are properly located in the test tree.
  • Test descriptions allow a reader to "read only the test plans and evaluate coverage completeness", and accurately reflect the test code.
  • Tests provide complete coverage (including validation control cases). Missing coverage MUST be covered by TODOs.
  • Helpers and types promote readability and maintainability.

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

Covers `u32`, `i32`, and `f32` cases.
Only generates `low` <= `high` cases currently, see
gpuweb/gpuweb#2557 for more discussion
@zoddicus zoddicus added the wgsl label Feb 2, 2022
@zoddicus zoddicus self-assigned this Feb 2, 2022
@github-actions

github-actions Bot commented Feb 2, 2022

Copy link
Copy Markdown

Previews, as seen when this build job started (1dddfda):
Run tests | View tsdoc

@zoddicus

zoddicus commented Feb 3, 2022

Copy link
Copy Markdown
Contributor Author

PTAL, this is ready for review

@ben-clayton ben-clayton left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two nits around the i32 cases, but looks great!

@github-actions

github-actions Bot commented Feb 7, 2022

Copy link
Copy Markdown

Previews, as seen when this build job started (a283d8e):
Run tests | View tsdoc

@zoddicus
zoddicus merged commit ad861cb into gpuweb:main Feb 7, 2022
@zoddicus
zoddicus deleted the addClampTests branch February 7, 2022 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants