Sitelet https://github.com/gpuweb/gpuweb/pull/2987
Skip to content

Disallow accessing padding - #2987

Merged
dneto0 merged 2 commits into
gpuweb:mainfrom
alan-baker:no-padding-access
May 31, 2022
Merged

dneto0 merged 2 commits into
gpuweb:mainfrom
alan-baker:no-padding-access

Conversation

@alan-baker

Copy link
Copy Markdown
Contributor

Fixes #1747

  • Implementations must not access padding memory locations in structures
    and arrays
    • intentionally not a shader-creation error as it is not expressible
      in WGSL, but is an implementation requirement

Fixes gpuweb#1747

* Implementations must not access padding memory locations in structures
  and arrays
  * intentionally not a shader-creation error as it is not expressible
    in WGSL, but is an implementation requirement
@alan-baker alan-baker added the wgsl WebGPU Shading Language Issues label May 31, 2022
@alan-baker
alan-baker requested review from dneto0, kdashg and litherum May 31, 2022 19:21
@github-actions

Copy link
Copy Markdown
Contributor

Previews, as seen when this build job started (7aa6d44):
WebGPU | IDL
WGSL
Explainer

@dneto0 dneto0 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.

Should this be "will not" instead, as it describes

Comment thread wgsl/index.bs Outdated

@dneto0 dneto0 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.

Thanks.

@dneto0
dneto0 enabled auto-merge (squash) May 31, 2022 19:52
@dneto0
dneto0 merged commit 7960b5b into gpuweb:main May 31, 2022
github-actions Bot added a commit that referenced this pull request May 31, 2022
SHA: 7960b5b
Reason: push, by @dneto0

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Previews, as seen when this build job started (207b3de):
WebGPU | IDL
WGSL
Explainer

github-actions Bot added a commit that referenced this pull request May 31, 2022
SHA: 7960b5b
Reason: push, by @dneto0

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request May 31, 2022
SHA: 7960b5b
Reason: push, by @dneto0

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
jdarpinian pushed a commit to jdarpinian/gpuweb that referenced this pull request Aug 12, 2022
* Disallow accessing padding

Fixes gpuweb#1747

* Implementations must not access padding memory locations in structures
  and arrays
  * intentionally not a shader-creation error as it is not expressible
    in WGSL, but is an implementation requirement

* Change language to will not
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wgsl WebGPU Shading Language Issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Are padding bytes of structures intialized with zero value expressions?

2 participants