Skip to content

Create Image with Optimal tiling and HOST_ACCESS_SEQUENTIAL_WRITE memory flag #305

@FuXiii

Description

@FuXiii

My device support create VkImage with Optimal tiling, TRANSFER_DST usage in format B8G8R8A8_UNORM

image

Then, I use pure Vulkan API try to create VkImage:

ImageCreateSuccessed
It created successfully


and then I try to use VMA call vmaCreateImage to create image:

image
image

VmaAllocator *vma_allocator = (VmaAllocator *)(this->device->GetVmaAllocator()->GetVmaAllocator());
VkResult result = vmaCreateImage(*vma_allocator, &vk_image_create_info, &alloc_info, &this->vkImage, (VmaAllocation *)this->vmaAllocation, nullptr);

the create result return VK_ERROR_FEATURE_NOT_PRESENT
image

Why? Is that means if I use Optimal tiling, I must use DEDICATED_MEMORY?
If I use Linear tiling with HOST_ACCESS_SEQUENTIAL_WRITE to create image, and then copy some GPU domain resource data into it. Is this the correct usage for Linear tiling image?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions