Memory pool update
This commit is contained in:
@@ -46,6 +46,8 @@ namespace OpenVulkano::Vulkan
|
|||||||
return mapped || allocation->mapped;
|
return mapped || allocation->mapped;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[[nodiscard]] void* GetMappedMemory() const { return mapped; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Maps the buffer into the memory of the host.
|
* \brief Maps the buffer into the memory of the host.
|
||||||
* \tparam T The type of the buffers data.
|
* \tparam T The type of the buffers data.
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ namespace OpenVulkano::Vulkan
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!alloc && createIfAllFull) alloc = CreateMemoryAllocation(64_MiB, type, true);
|
if(!alloc && createIfAllFull) alloc = CreateMemoryAllocation(128_MiB, type, true);
|
||||||
return alloc;
|
return alloc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user