mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[dxvk] Improved memory allocation debug output
This commit is contained in:
parent
8d3e60c2f1
commit
320cebb8f9
@ -288,9 +288,13 @@ namespace dxvk {
|
|||||||
result = this->tryAlloc(req, flags & ~VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT);
|
result = this->tryAlloc(req, flags & ~VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT);
|
||||||
|
|
||||||
if (result.memory() == VK_NULL_HANDLE) {
|
if (result.memory() == VK_NULL_HANDLE) {
|
||||||
throw DxvkError(str::format(
|
Logger::err(str::format(
|
||||||
"DxvkMemoryAllocator: Failed to allocate ",
|
"DxvkMemoryAllocator: Memory allocation failed",
|
||||||
req.size, " bytes"));
|
"\n Size: ", req.size,
|
||||||
|
"\n Alignment: ", req.alignment,
|
||||||
|
"\n Mem flags: ", "0x", std::hex, flags,
|
||||||
|
"\n Mem types: ", "0x", std::hex, req.memoryTypeBits));
|
||||||
|
throw DxvkError("DxvkMemoryAllocator: Memory allocation failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user