Skip to content

[wgsl] Flip the default texture name. - #1180

Merged
dj2 merged 2 commits into
gpuweb:mainfrom
dj2:tex_name
Nov 3, 2020
Merged

dj2 merged 2 commits into
gpuweb:mainfrom
dj2:tex_name

Conversation

@dj2

@dj2 dj2 commented Oct 26, 2020

Copy link
Copy Markdown
Member

This CL swaps the short texture name to be sampled textures and
explicitly names the storage textures.

So, texture_sampled_1d -> texture_1d and texture_ro_1d ->
texture_storage_ro_1d.

Issue #1159

This CL swaps the short texture name to be sampled textures and
explicitly names the storage textures.

So, `texture_sampled_1d` -> `texture_1d` and `texture_ro_1d` ->
`texture_storage_ro_1d`.

Issue #1159
@dj2 dj2 added the wgsl WebGPU Shading Language Issues label Oct 26, 2020
@dj2 dj2 added this to the MVP milestone Oct 26, 2020
@dj2
dj2 requested review from dneto0 and kvark October 26, 2020 18:27
@dj2 dj2 self-assigned this Oct 26, 2020

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

I think a future CL will apply the read,write as template attribs.

Comment thread wgsl/index.bs Resolved
Comment thread wgsl/index.bs

<pre class='def'>
`texture_ro_1d<image_storage_type>`
`texture_storage_ro_1d<image_storage_type>`

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.

Can we call it just "storage_ro_1d", perhaps? it would be shorter and unambiguous

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That seems like it would be confusing when we have storage buffers and a storage_* types, yet the storage types aren't used with storage buffers.

@grorg

grorg commented Nov 3, 2020

Copy link
Copy Markdown
Contributor

Discussed at 2020-11-03 meeting.

@grorg

grorg commented Nov 3, 2020

Copy link
Copy Markdown
Contributor

Resolved: Accepted.

@dj2
dj2 merged commit 7f4c2fd into gpuweb:main Nov 3, 2020
@dj2
dj2 deleted the tex_name branch November 3, 2020 20:11
ben-clayton added a commit to ben-clayton/webgpu-samples that referenced this pull request Jan 13, 2021
These texture types were renamed in October 2020:
gpuweb/gpuweb#1180
ben-clayton added a commit to ben-clayton/webgpu-samples that referenced this pull request Jan 13, 2021
These texture types were renamed in October 2020:
gpuweb/gpuweb#1180
austinEng pushed a commit to webgpu/webgpu-samples that referenced this pull request Jan 13, 2021
These texture types were renamed in October 2020:
gpuweb/gpuweb#1180
marksisson pushed a commit to vendored/google.dawn that referenced this pull request Jan 14, 2021
These texture types were renamed in October 2020:
gpuweb/gpuweb#1180

Tint has supported both forms since November 2020:
https://dawn-review.googlesource.com/c/tint/+/31380

Finally migrate to the new form so we can drop support for the old.

Bug: tint:286
Change-Id: Id19b79be28152b3de163f9cce75eefff1ae31d76
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/37702
Commit-Queue: Ben Clayton <[email protected]>
Reviewed-by: dan sinclair <[email protected]>
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.

4 participants