Skip to content

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

Closed
LegNeato wants to merge 1 commit intoRust-GPU:mainfrom
LegNeato:nostride
Closed

Fix invalid ArrayStride decorations on arrays in function/private storage#297
LegNeato wants to merge 1 commit intoRust-GPU:mainfrom
LegNeato:nostride

Conversation

@LegNeato
Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

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

@LegNeato
Copy link
Copy Markdown
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