Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vmaCreateImage() fails when using VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT #371

Open
Stef-2 opened this issue Sep 20, 2023 · 1 comment
Open
Labels
question Further information is requested

Comments

@Stef-2
Copy link

Stef-2 commented Sep 20, 2023

When attempting to create an image with VkImageUsageFlagBits::VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT provided by the recently released VK_EXT_host_image_copy, VMA returns a VK_ERROR_FEATURE_NOT_PRESENT error.

Inspecting further into what is happening under the hood, it looks like FindMemoryTypeIndex() is the one returning this error code.

@adam-sawicki-a
Copy link
Contributor

I think it is most likely not a VMA fault. To check this, please create your image using vkCreateImage, then call vkGetImageMemoryRequirements, inspect bit flags in VkMemoryRequirements::memoryTypeBits and check whether the image with given creation parameters can be created in any of the memory types that meet your criteria.

Please also make sure you don't pass unnecessary flags to VmaAllocationCreateInfo. Leave it all zeros and see if it helps.

@adam-sawicki-a adam-sawicki-a added the question Further information is requested label Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants