Skip to content

Conversation

@jwollen
Copy link
Contributor

@jwollen jwollen commented Apr 21, 2025

Stop decorating RuntimeArrays of unsized types with ArrayStride. Fixes the spirv-val rule:

Array containing a Block or BufferBlock must not be decorated with ArrayStride

This already works correctly when using qptrs.

Copy link
Member

@Firestar99 Firestar99 left a comment

Choose a reason for hiding this comment

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

Thanks!
just fixed the lint errors so we can merge this

@Firestar99 Firestar99 enabled auto-merge April 21, 2025 14:17
@Firestar99 Firestar99 added this pull request to the merge queue Apr 21, 2025
Merged via the queue into Rust-GPU:main with commit f6e22b4 Apr 21, 2025
7 checks passed
@LegNeato
Copy link
Collaborator

Thank you so much for the PR!!

@jwollen
Copy link
Contributor Author

jwollen commented Aug 20, 2025

@eddyb Out of curiosity. if we reverted this, and SPIR-T needs this info, how would it work on valid non-rust-gpu SPIR-V in the future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants