-
Notifications
You must be signed in to change notification settings - Fork 86
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
Type texture #3472
Merged
Merged
Type texture #3472
Conversation
This file contains 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
ben-clayton
reviewed
Mar 12, 2024
Obsolete comment:
~~Yeah seems to be an implementation bug. But I'm not 100% sure given there'screateShaderModule test in the bgra8unorm_stoarge test that passes, with and without bgra8unorm_storage feature~~
…On Tue, Mar 12, 2024, 11:18 Ben Clayton ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/webgpu/shader/validation/types/textures.spec.ts
<#3472 (comment)>:
> +`;
+ t.expectCompileResult(false, wgsl);
+ });
+
+g.test('storage_texture_types')
+ .desc(
+ `Test that for texture_storage_xx<format, access>
+- format must be an enumerant for one of the texel formats for storage textures
+- access must be an enumerant for one of the access modes
+`
+ )
+ .params(u =>
+ u
+ .combine('access', ['read', 'write', 'read_write'] as const)
+ .combine('format', kAllTextureFormats)
+ // bgra8unorm-storage feature is tested at webgpu,api,validation,texture,bgra8unorm_storage
Seems to fail for all access (when bgra8unorm-storage is not requried)
Sorry, please can you elaborate a little? You believe you've found an
implementation bug?
—
Reply to this email directly, view it on GitHub
<#3472 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGMNLCOUPAE6BAATLGYOG3YX5BGHAVCNFSM6AAAAABENPRLM2VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTSMZRHE3DGNRUHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
jrprice
reviewed
Mar 13, 2024
jrprice
approved these changes
Mar 13, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ben-clayton
pushed a commit
to ben-clayton/cts
that referenced
this pull request
Mar 18, 2024
* webgpu,shader,validation,types,textures * switch param order, filter out bgra8unorm * fix listing_meta * add bgra8unorm * reinterpret spec fixes * Fix comment * fix const
ben-clayton
pushed a commit
to ben-clayton/cts
that referenced
this pull request
Mar 18, 2024
* webgpu,shader,validation,types,textures * switch param order, filter out bgra8unorm * fix listing_meta * add bgra8unorm * reinterpret spec fixes * Fix comment * fix const
ben-clayton
pushed a commit
to ben-clayton/cts
that referenced
this pull request
Mar 19, 2024
* webgpu,shader,validation,types,textures * switch param order, filter out bgra8unorm * fix listing_meta * add bgra8unorm * reinterpret spec fixes * Fix comment * fix const
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.
First try adding to WGSL validation tests: texel_formats, storage_texture_types
Failing cases in Chrome:
- storage_texture_types: format without readWriteStorage usage didn't get rejected with 'read-write' access.For other texture types (e.g. sampled textures, multisampled textures etc.) I think they need api side binding creation to test the format validation. Do we want to include that as part of these shader validation tests?
Requirements for PR author:
.unimplemented()
./** documented */
and new helper files are found inhelper_index.txt
.Requirements for reviewer sign-off:
When landing this PR, be sure to make any necessary issue status updates.