Skip to content

WIP: start describing shader input/output interfaces, builtin variables - #1133

Closed
dneto0 wants to merge 12 commits into
gpuweb:mainfrom
dneto0:interfaces
Closed

dneto0 wants to merge 12 commits into
gpuweb:mainfrom
dneto0:interfaces

Conversation

@dneto0

@dneto0 dneto0 commented Oct 5, 2020

Copy link
Copy Markdown
Contributor

No description provided.

Also:
- Define IO-shareable
- Define read-only texture
- Define write-only texture
- Add more cross-links.
- Restrict where runtime-sized arrays may be used
- Store type of uniform and storage_buffer variables must be
block-decorated

Fixes gpuweb#1004
Highlight the difference between IO-shareable and host-shareable.

Move a TODO down to the memory layout section.  That whole section is
still TODO.
Reword the introduction to the storage classes table, and on the
"Variable scop" heading.
- Move restriction runtime arrays up to the section on array types.
  Add a TODO for tricky wording about not having intermediate values
  be of array type.
- Add various cross-references
- Move "block-decorated" restriction into the storage classes table
  so it's harder to miss.
- Wording improvements for inputs and outputs
Rexture storage class would only be used if WGSL supports image atomics.
But WebGPU won't have that because it's not available on all platform APIs.

Also reorder the grammar list of storage classes to match the table.
@dneto0
dneto0 marked this pull request as draft October 5, 2020 22:24
@dneto0

dneto0 commented Oct 5, 2020

Copy link
Copy Markdown
Contributor Author

@dj2 dj2 added the wgsl WebGPU Shading Language Issues label Oct 6, 2020
@dj2 dj2 added this to the MVP milestone Oct 6, 2020
@dneto0

dneto0 commented Oct 9, 2020

Copy link
Copy Markdown
Contributor Author

I renamed my branch, so I'll close this and open another

@dneto0 dneto0 closed this Oct 9, 2020
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
…puweb#1133)

Specifying the bytesPerRow is not necessary in this test so it is just
removed.
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