Skip to content

Conversation

@pknowles
Copy link

Fixes #523

{
VMA_ASSERT(allocator && buffer != VK_NULL_HANDLE && pCreateInfo && pAllocation);

VMA_DEBUG_LOG("vmaAllocateMemoryForBuffer");
Copy link
Author

Choose a reason for hiding this comment

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

Should this VMA_DEBUG_LOG() be removed? Could add a common internal implementation like AllocateMemoryForBuffer()? Inline the implementations?

Currently vmaCreateBuffer() and vmaCreateBufferWithAlignment() share an internal CreateBuffer() that has:

        // 2a. Include minAlignment
        vkMemReq.alignment = VMA_MAX(vkMemReq.alignment, minAlignment);

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.

Support vmaAllocateMemoryForBuffer() with a min. alignment

1 participant