Skip to content

Add support for external memory #274

@SupaMaggie70Incorporated

Description

In order to allocate memory that can be exported in vulkan, a vkExportMemoryAllocateInfoKHR struct must be passed to the pNext chain of the create info. unfortunately gpu-allocator doesn't allow for this. I see 3 ways to approach this:

  • Add support for external memory specifically
  • Add support for a custom pNext object for the vulkan allocator
  • Add some way to access gpu-allocator's internal allocator, so that the user can manage the allocation themself but still let gpu-allocator select the memory type and whatnot

I think option number 3 would be the most useful overall but would take the most work. I'd be interested in seeing either that or option 2 implemented here.

I'm just gonna leave this issue here until I get feedback on which approach should be taken.

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