mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-22 15:04:34 +00:00
Fix for undeclared identifier VK_STRUCTURE_TYPE_DEVICE_IMAGE_MEMORY_REQUIREMENTS
Fixes #413 - thanks @HermanWolf
This commit is contained in:
parent
19b940e864
commit
60fe740c77
@ -15210,7 +15210,7 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaFindMemoryTypeIndexForImageInfo(
|
|||||||
if(funcs->vkGetDeviceImageMemoryRequirements)
|
if(funcs->vkGetDeviceImageMemoryRequirements)
|
||||||
{
|
{
|
||||||
// Can query straight from VkImageCreateInfo :)
|
// Can query straight from VkImageCreateInfo :)
|
||||||
VkDeviceImageMemoryRequirements devImgMemReq = {VK_STRUCTURE_TYPE_DEVICE_IMAGE_MEMORY_REQUIREMENTS};
|
VkDeviceImageMemoryRequirements devImgMemReq = {VK_STRUCTURE_TYPE_DEVICE_IMAGE_MEMORY_REQUIREMENTS_KHR};
|
||||||
devImgMemReq.pCreateInfo = pImageCreateInfo;
|
devImgMemReq.pCreateInfo = pImageCreateInfo;
|
||||||
VMA_ASSERT(pImageCreateInfo->tiling != VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT_COPY && (pImageCreateInfo->flags & VK_IMAGE_CREATE_DISJOINT_BIT_COPY) == 0 &&
|
VMA_ASSERT(pImageCreateInfo->tiling != VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT_COPY && (pImageCreateInfo->flags & VK_IMAGE_CREATE_DISJOINT_BIT_COPY) == 0 &&
|
||||||
"Cannot use this VkImageCreateInfo with vmaFindMemoryTypeIndexForImageInfo as I don't know what to pass as VkDeviceImageMemoryRequirements::planeAspect.");
|
"Cannot use this VkImageCreateInfo with vmaFindMemoryTypeIndexForImageInfo as I don't know what to pass as VkDeviceImageMemoryRequirements::planeAspect.");
|
||||||
|
Loading…
Reference in New Issue
Block a user