Skip to content

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