Skip to content

Swapchain format - #986

Merged
jchen10 merged 2 commits into
gpuweb:jie-DryRunfrom
jchen10:swapchain_format
Feb 9, 2022
Merged

jchen10 merged 2 commits into
gpuweb:jie-DryRunfrom
jchen10:swapchain_format

Conversation

@jchen10

@jchen10 jchen10 commented Feb 9, 2022

Copy link
Copy Markdown
Contributor

Issue: #


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.

This extends the readbackFromWebGPUCanvas and canvas_clear tests to cover rgba8unorm.
@jchen10
jchen10 merged commit ecebd78 into gpuweb:jie-DryRun Feb 9, 2022
kainino0x added a commit that referenced this pull request Feb 10, 2022
* Add rgba8unorm support for swapchain format

This extends the readbackFromWebGPUCanvas and canvas_clear tests to cover rgba8unorm.

* Cleanup kValidSwapchainFormats and use draw to initialize canvas

* Swapchain format (#986)

* Add rgba8unorm support for swapchain format

This extends the readbackFromWebGPUCanvas and canvas_clear tests to cover rgba8unorm.

* Cleanup kValidSwapchainFormats and use draw to initialize canvas

* Clear pixel by pixel

* Update src/webgpu/web_platform/canvas/readbackFromWebGPUCanvas.spec.ts

* format

Co-authored-by: Kai Ninomiya <[email protected]>
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