Skip to content

Support vmaAllocateMemoryForBuffer() with a min. alignment #523

@pknowles

Description

@pknowles

It'd be nice to have all the features of vmaAllocateMemoryForBuffer() including the ability to increase the required alignment like vmaAllocateMemory() provides.

I think that's currently just:

    bool requiresDedicatedAllocation = false;
    bool prefersDedicatedAllocation = false;

This could be done by adding vmaAllocateMemoryForBufferWithAlignment() to match vmaCreateBufferWithAlignment():

  • vmaAllocateMemoryForBuffer() supports users who create their own VkBuffer instead of using vmaCreateBuffer()
  • 25e4368 added vmaCreateBufferWithAlignment()
  • To complete the symmetry, it'd be nice to have a vmaAllocateMemoryForBufferWithAlignment()

The calls could be factored, much like 9f097a6 did, so it wouldn't be much code to add.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions