mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-28 15:39:17 +00:00
BindBufferMemory, BindImageMemory - Return VK_ERROR_UNKNOWN for unknown allocation type
This commit is contained in:
parent
936bc4b57e
commit
2ea07806af
1 changed files with 2 additions and 2 deletions
|
@ -15598,7 +15598,7 @@ VkResult VmaAllocator_T::BindBufferMemory(
|
||||||
VkBuffer hBuffer,
|
VkBuffer hBuffer,
|
||||||
const void* pNext)
|
const void* pNext)
|
||||||
{
|
{
|
||||||
VkResult res = VK_SUCCESS;
|
VkResult res = VK_ERROR_UNKNOWN;
|
||||||
switch(hAllocation->GetType())
|
switch(hAllocation->GetType())
|
||||||
{
|
{
|
||||||
case VmaAllocation_T::ALLOCATION_TYPE_DEDICATED:
|
case VmaAllocation_T::ALLOCATION_TYPE_DEDICATED:
|
||||||
|
@ -15623,7 +15623,7 @@ VkResult VmaAllocator_T::BindImageMemory(
|
||||||
VkImage hImage,
|
VkImage hImage,
|
||||||
const void* pNext)
|
const void* pNext)
|
||||||
{
|
{
|
||||||
VkResult res = VK_SUCCESS;
|
VkResult res = VK_ERROR_UNKNOWN;
|
||||||
switch(hAllocation->GetType())
|
switch(hAllocation->GetType())
|
||||||
{
|
{
|
||||||
case VmaAllocation_T::ALLOCATION_TYPE_DEDICATED:
|
case VmaAllocation_T::ALLOCATION_TYPE_DEDICATED:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue