| 415 | } |
| 416 | |
| 417 | void VulkanObjectManager::Fill(VulkanObject object, void const * data, uint32_t sizeInBytes) |
| 418 | { |
| 419 | std::lock_guard<std::mutex> lock(m_mutex); |
| 420 | void * gpuPtr = MapUnsafe(object); |
| 421 | if (data != nullptr) |
| 422 | memcpy(gpuPtr, data, sizeInBytes); |
| 423 | else |
| 424 | memset(gpuPtr, 0, sizeInBytes); |
| 425 | FlushUnsafe(object); |
| 426 | UnmapUnsafe(object); |
| 427 | } |
| 428 | |
| 429 | void VulkanObjectManager::CreateDescriptorPool() |
| 430 | { |