Skip to content

Conversation

@s-perron
Copy link
Collaborator

When picking the layout rule for the Pointee type of a BufferPointer, we
are using the layout for the object containing the pointer, but that is
incorrect.

The layout for the PhysicalStorageBuffer should always follow the
storage buffer layout rules.

Fixes #7893

When picking the layout rule for the Pointee type of a BufferPointer, we
are using the layout for the object containing the pointer, but that is
incorrect.

The layout for the PhysicalStorageBuffer should always follow the
storage buffer layout rules.

Fixes microsoft#7893
Copy link
Collaborator

@Keenuts Keenuts left a comment

Choose a reason for hiding this comment

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

LGTM, minus the SPIRV-Headers/tools change. Might be a mistake?

@s-perron s-perron enabled auto-merge (squash) December 1, 2025 17:17
@s-perron s-perron requested review from Keenuts and luciechoi December 1, 2025 17:17
@s-perron s-perron merged commit aa9b462 into microsoft:main Dec 2, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[SPIR-V] Loading structure containing an array with vk::BufferPointer produces invalid SPIR-V

2 participants