Skip to content

Fix alignedVkSize() usages on possibly non-PoT values - #1294

Merged
SaschaWillems merged 1 commit into
SaschaWillems:masterfrom
takayhan-AMD:fix-nonpow2-alignment
Oct 5, 2026
Merged

SaschaWillems merged 1 commit into
SaschaWillems:masterfrom
takayhan-AMD:fix-nonpow2-alignment

Conversation

@takayhan-AMD

@takayhan-AMD takayhan-AMD commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

This fixes a bug on one platform in which VkPhysicalDeviceDescriptorHeapPropertiesEXT::bufferDescriptorSize was reported to be 24 (0x18) which didn't work properly.

I chose to unify different alignment functions into one function template which can be used on any values/types universally.

I chose to unify different alignment functions into one template which can be used on any values/types universally.

This fixes a bug on one platform in which VkPhysicalDeviceProperties2::bufferDescriptorSize was reported to be 24 (0x18) which didn't work properly.
@SaschaWillems

Copy link
Copy Markdown
Owner

Thanks. Your contribution is very much appreciated 👍🏻

@SaschaWillems
SaschaWillems merged commit aa8fde2 into SaschaWillems:master Oct 5, 2026
3 checks passed
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.

2 participants