Skip to content

[SPIRV] Get alignemnt from pointee type for vk::BufferPoitner store#7501

Merged
s-perron merged 1 commit into
microsoft:mainfrom
s-perron:i7459
Jun 2, 2025
Merged

[SPIRV] Get alignemnt from pointee type for vk::BufferPoitner store#7501
s-perron merged 1 commit into
microsoft:mainfrom
s-perron:i7459

Conversation

@s-perron
Copy link
Copy Markdown
Collaborator

@s-perron s-perron commented Jun 2, 2025

A small mistake for stores to vk:BufferPointer when storing directly to
the return value of get(). We were getting the alignment of the
pointer itself, which is always 8 instead of the type pointed to.

I tested loads, and it does not have the same problem.

Fixes #7459

A small mistake for stores to vk:BufferPointer when storing directly to
the return value of `get()`. We were getting the alignment of the
pointer itself, which is always 8 instead of the type pointed to.

I tested loads, and it does not have the same problem.

Fixes microsoft#7459
@s-perron s-perron merged commit 48d6e3c into microsoft:main Jun 2, 2025
13 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in HLSL Roadmap Jun 2, 2025
@s-perron s-perron deleted the i7459 branch June 2, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[SPIR-V] In vk::BufferPointer<T,Alignment> the Alignment is ignored

2 participants