Repository navigation
Fix mapping to SPIR-V for texture buffers - #1110
Merged
Merged
Conversation
kvark
reviewed
Sep 25, 2020
| %1 = OpTypeImage %void 3D 0 0 0 2 image_storage_type | ||
| </pre> | ||
|
|
||
| When mapping to SPIR-V, a write-only storage texture variable must also have a `NonWritable` decoration. |
Contributor
There was a problem hiding this comment.
this should say NonReadable.
dj2
reviewed
Sep 25, 2020
| </pre> | ||
| * type(image_storage_type) is one of `f32`, `i32`, or `u32`, depending on the storage type. | ||
|
|
||
| When mapping to SPIR-V, a read-only storage texture variable must also have a `NonWritable` decoration. |
Member
There was a problem hiding this comment.
Would it be worth showing an example of that?
%2 = OpVariable %1 Function
OpDecorate %2 NonWritable
For Shader SPIR-V, the variable must be decorated. The read/write property is not part of the image type itself (like it is for Kernel SPIR-V).
dneto0
force-pushed
the
texture-buffer-spirv
branch
from
September 25, 2020 20:21
e887ad5 to
4e75e17
Compare
Contributor
Author
|
I also rebased against main. |
kvark
approved these changes
Sep 25, 2020
dj2
approved these changes
Sep 26, 2020
ben-clayton
pushed a commit
to ben-clayton/gpuweb
that referenced
this pull request
Sep 6, 2022
Array.sort() defaults to sorting elements by converting them to strings and sorting them alphabetically. To sort numerically, we need to define the comparator function manually.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For Shader SPIR-V, the variable must be decorated. The read/write
property is not part of the image type itself (like it is for Kernel
SPIR-V).