| 378 | } |
| 379 | |
| 380 | uint8_t * VulkanObjectManager::MapUnsafe(VulkanObject object) |
| 381 | { |
| 382 | CHECK(!object.m_allocation->m_memoryBlock->m_isBlocked, ()); |
| 383 | |
| 384 | CHECK(object.m_buffer != VK_NULL_HANDLE || object.m_image != VK_NULL_HANDLE, ()); |
| 385 | uint8_t * ptr = nullptr; |
| 386 | CHECK_VK_CALL(vkMapMemory(m_device, object.GetMemory(), object.GetAlignedOffset(), object.GetAlignedSize(), 0, |
| 387 | reinterpret_cast<void **>(&ptr))); |
| 388 | object.m_allocation->m_memoryBlock->m_isBlocked = true; |
| 389 | return ptr; |
| 390 | } |
| 391 | |
| 392 | void VulkanObjectManager::FlushUnsafe(VulkanObject object, uint32_t offset, uint32_t size) |
| 393 | { |
no test coverage detected