Skip to content

Fix invalid ArrayStride decorations on arrays in function/private storage #297

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

Closed
wants to merge 1 commit into from

Conversation

LegNeato
Copy link
Collaborator

Arrays now track stride as Option to distinguish between arrays that need explicit layout decorations and those that don't. Arrays with None stride won't have ArrayStride decoration applied.

In SPIR-V 1.5+, ArrayStride decorations are only valid for Uniform, StorageBuffer, and PushConstant storage classes. Using them in Function or Private storage is invalid.

Fixes #266

…rage

Arrays now track stride as Option<u32> to distinguish between arrays that
need explicit layout decorations and those that don't. Arrays with None
stride won't have ArrayStride decoration applied.

In SPIR-V 1.5+, ArrayStride decorations are only valid for Uniform,
StorageBuffer, and PushConstant storage classes. Using them in Function
or Private storage is invalid.

Fixes Rust-GPU#266
@LegNeato
Copy link
Collaborator Author

@redain can you try this branch and see if it fixes your issue?

@LegNeato
Copy link
Collaborator Author

Not finished with this, found issues.

@LegNeato LegNeato closed this Jun 26, 2025
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.

Workgroup doesn't work in MoltenVk
1 participant