Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suport for reading from StorageTexture by a shader (WebGPU) #6268

Merged
merged 3 commits into from
Apr 19, 2024

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Apr 19, 2024

By default, a StorageTexture can be only used with write-only mode. When WebGPU exposes storage texture read support for WGSL language, the StorageTexture can also be used in read mode.

This extension has been added in Chrome 124, and this PR adds support for it: https://developer.chrome.com/blog/new-in-webgpu-124

Also, few bind group parameters were marked as optional.

@mvaligursky mvaligursky mentioned this pull request Apr 19, 2024
6 tasks
@mvaligursky mvaligursky self-assigned this Apr 19, 2024
@mvaligursky mvaligursky added area: graphics Graphics related issue enhancement labels Apr 19, 2024
@mvaligursky mvaligursky requested a review from a team April 19, 2024 14:27
@mvaligursky mvaligursky changed the title Suport for reading from StorageTexture by the shader (WebGPU) Suport for reading from StorageTexture by a shader (WebGPU) Apr 19, 2024
Co-authored-by: Will Eastcott <will@playcanvas.com>
@mvaligursky mvaligursky merged commit 6a57526 into main Apr 19, 2024
7 checks passed
@mvaligursky mvaligursky deleted the mv-read-storage-texture branch April 19, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants