Skip to content

Conversation

@dneto0
Copy link
Contributor

@dneto0 dneto0 commented Apr 9, 2021

We already have the rule that no expression has static
type that is a runtime-size array.
The previous definition of arrayLength violated that rule.

@dneto0 dneto0 added the wgsl WebGPU Shading Language Issues label Apr 9, 2021
@dneto0 dneto0 added this to the MVP milestone Apr 9, 2021
@dneto0
Copy link
Contributor Author

dneto0 commented Apr 9, 2021

Additionally, runtime-sized arrays can only appear in "storage" storage class.

@dneto0 dneto0 requested review from alan-baker and kvark April 9, 2021 14:41
@dneto0
Copy link
Contributor Author

dneto0 commented Apr 9, 2021

Note: Now that we have #1569, this is a breaking change because now you have to supply the & when calling the builtin.

(Unless you want to allow arrayLength(ref<storage,array<T>>) but that's not what the group has agreed to.)

We already have the rule that no expression has static
type that is a runtime-size array.
The previous definition of arrayLength violated that rule.
Copy link
Contributor

@alan-baker alan-baker left a comment

Choose a reason for hiding this comment

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

This should close #1490 too

@dneto0 dneto0 merged commit 1c569ac into gpuweb:main Apr 9, 2021
ben-clayton added a commit to ben-clayton/webgpu-samples that referenced this pull request Jun 11, 2021
Remove access control decorations.
See gpuweb/gpuweb#1735

arrayLength() now takes a pointer to the array.
See gpuweb/gpuweb#1619
austinEng pushed a commit to webgpu/webgpu-samples that referenced this pull request Jun 11, 2021
Remove access control decorations.
See gpuweb/gpuweb#1735

arrayLength() now takes a pointer to the array.
See gpuweb/gpuweb#1619
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
…eb#1619)

This PR simplifies the names of the existing tests with descriptions.

Issue: gpuweb#1618
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.

2 participants