Skip to content

[SPIR-V] Explicitly state which layout rules require scalar block layout #7539

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

shawnhatori
Copy link

@shawnhatori shawnhatori commented Jun 15, 2025

I was trying to debug a Vulkan Storage Buffer-related memory alignment issue in my application where I was using SPIR-V generated via dxc with -fvk-use-dx-layout. In SPIR-V.rst, I happened to miss the paragraph that follows the list of layout rules (removed in this proposal). That paragraph starts with "To use scalar layout", which given my use of DirectX layout, I did not think was relevant to me. However, the next sentence of that paragraph sneakily and indirectly mentions that VK_EXT_scalar_block_layout is required for the DirectX memory layout as well.

I have proposed explicitly stating the extension requirement when the relevant layout rules are listed.

@s-perron s-perron requested a review from Keenuts June 20, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New
Development

Successfully merging this pull request may close these issues.

2 participants