Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

kainino0x
Copy link
Contributor

@kainino0x kainino0x commented Nov 2, 2023

This text used to allow requesting alignment limits like 232 or 253. This didn't do anything useful, but it adds implementation complexity, because, per this spec, alignment limits are 32-bit integers. In order to implement that you would need a special case to handle the casting of the GPUSize64 (from the record<DOMString, GPUSize64>) to a uint32_t internally.

Test: gpuweb/cts#3132
Chromium: https://chromium-review.googlesource.com/c/chromium/src/+/5002999

This text used to allow requesting alignment limits like 2**32 or 2**53.
This didn't do anything useful, but it adds implementation complexity,
because, per this spec, alignment limits are 32-bit integers. In order
to implement that you would need a special case to handle the casting of
the GPUSize64 (from the record<>) to a uint32_t internally.
@kainino0x kainino0x added proposal tacit resolution candidate Editors may be able to resolve and move to tacit resolution queue labels Nov 2, 2023
@kainino0x kainino0x added this to the Milestone 1 milestone Nov 2, 2023
@kainino0x kainino0x requested a review from toji November 2, 2023 23:45
Copy link
Contributor

github-actions bot commented Nov 2, 2023

Previews, as seen when this build job started (6a855bf):
WebGPU webgpu.idl | Explainer | Correspondence Reference
WGSL grammar.js | wgsl.lalr.txt

Copy link
Member

@toji toji left a comment

Choose a reason for hiding this comment

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

LGTM!

@kainino0x kainino0x added tacit resolution queue Editors have agreed and intend to land if no feedback is given and removed tacit resolution candidate Editors may be able to resolve and move to tacit resolution queue labels Nov 3, 2023
@mwyrzykowski
Copy link

Yes we are in support of this as well. 2**32 - 1 should be the maximum value.

@jimblandy
Copy link
Contributor

Looks good to Mozilla.

@kainino0x kainino0x removed the tacit resolution queue Editors have agreed and intend to land if no feedback is given label Nov 8, 2023
@kainino0x kainino0x merged commit ad2ae0a into gpuweb:main Nov 8, 2023
@kainino0x kainino0x deleted the alignment-u32 branch November 8, 2023 20:15
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.

4 participants