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

WGPU: Add new test and explanation for disabled test #5731

Merged
merged 6 commits into from
Dec 4, 2024

Conversation

aleino-nv
Copy link
Collaborator

  • WGPU cannot support read-write access for storage textures of the format in the disabled test, so an explanation is added.
  • A similar test is added, which uses structured buffers instead and should work also on WGSL.

See comments on #5612 for more details.

This closes #5612.

@aleino-nv aleino-nv requested a review from a team as a code owner December 3, 2024 12:53
@aleino-nv aleino-nv added the pr: non-breaking PRs without breaking changes label Dec 3, 2024
@aleino-nv
Copy link
Collaborator Author

/format

@slangbot
Copy link
Contributor

slangbot commented Dec 3, 2024

🌈 Formatted, please merge the changes from this PR

jkwak-work
jkwak-work previously approved these changes Dec 3, 2024
Copy link
Collaborator

@jkwak-work jkwak-work left a comment

Choose a reason for hiding this comment

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

Looks good to me

@@ -1,7 +1,7 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -output-using-type
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj -output-using-type
//TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl -output-using-type
// Slang-RHI/WGPU: Invalid bind group layout entry used #5612
// Not supported in WGSL: read-write storage texture with "rg16f" format
Copy link
Collaborator

Choose a reason for hiding this comment

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

If the format is only problem for WGSL, can we change the format to one of formats WGSL supports?
Or maybe we can copy this test with a different format.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I can give it a shot.
There are some Slang-RHI issues related to storage textures I need to fix first though -- it currently doesn't create the bind group layout entry properly. I think I should set the access field to read-write, but I'm not quite sure how I should then get the required format information. I think I'll have to check in with Simon.

csyonghe
csyonghe previously approved these changes Dec 3, 2024
@csyonghe
Copy link
Collaborator

csyonghe commented Dec 3, 2024

Needs another re-format.

@aleino-nv
Copy link
Collaborator Author

/format

@slangbot
Copy link
Contributor

slangbot commented Dec 4, 2024

🌈 Formatted, please merge the changes from this PR

@aleino-nv aleino-nv enabled auto-merge (squash) December 4, 2024 07:54
@aleino-nv aleino-nv merged commit 697045f into shader-slang:master Dec 4, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slang-RHI/WGPU: Invalid bind group layout entry used
4 participants