Lines Matching refs:callbackData
294 const VkDebugUtilsMessengerCallbackDataEXT *callbackData, in DebugUtilsMessenger() argument
298 if (IsIgnoredDebugMessage(callbackData->pMessageIdName)) in DebugUtilsMessenger()
304 if (callbackData->pMessageIdName) in DebugUtilsMessenger()
306 log << "[ " << callbackData->pMessageIdName << " ] "; in DebugUtilsMessenger()
308 log << callbackData->pMessage << std::endl; in DebugUtilsMessenger()
315 if (callbackData->queueLabelCount > 0) in DebugUtilsMessenger()
318 for (uint32_t i = 0; i < callbackData->queueLabelCount; ++i) in DebugUtilsMessenger()
320 log << std::string(indent++, ' ') << callbackData->pQueueLabels[i].pLabelName in DebugUtilsMessenger()
324 if (callbackData->cmdBufLabelCount > 0) in DebugUtilsMessenger()
327 for (uint32_t i = 0; i < callbackData->cmdBufLabelCount; ++i) in DebugUtilsMessenger()
329 log << std::string(indent++, ' ') << callbackData->pCmdBufLabels[i].pLabelName in DebugUtilsMessenger()
334 if (callbackData->objectCount > 0) in DebugUtilsMessenger()
336 for (uint32_t i = 0; i < callbackData->objectCount; ++i) in DebugUtilsMessenger()
338 const char *objectName = callbackData->pObjects[i].pObjectName; in DebugUtilsMessenger()
339 const char *objectType = GetVkObjectTypeName(callbackData->pObjects[i].objectType); in DebugUtilsMessenger()
340 uint64_t objectHandle = callbackData->pObjects[i].objectHandle; in DebugUtilsMessenger()
350 log << " (type = " << objectType << "(" << callbackData->pObjects[i].objectType << "))"; in DebugUtilsMessenger()
412 MemoryReportCallback(const VkDeviceMemoryReportCallbackDataEXT *callbackData, void *userData) in MemoryReportCallback() argument
415 rendererVk->processMemoryReportCallback(*callbackData); in MemoryReportCallback()
3333 void vk::MemoryReport::processCallback(const VkDeviceMemoryReportCallbackDataEXT &callbackData, in processCallback() argument
3339 switch (callbackData.type) in processCallback()
3343 if ((mUniqueIDCounts[callbackData.memoryObjectId] += 1) > 1) in processCallback()
3347 size = mSizesPerType[callbackData.objectType].allocatedMemory + callbackData.size; in processCallback()
3348 mSizesPerType[callbackData.objectType].allocatedMemory = size; in processCallback()
3349 if (mSizesPerType[callbackData.objectType].allocatedMemoryMax < size) in processCallback()
3351 mSizesPerType[callbackData.objectType].allocatedMemoryMax = size; in processCallback()
3353 mCurrentTotalAllocatedMemory += callbackData.size; in processCallback()
3361 ASSERT(mUniqueIDCounts[callbackData.memoryObjectId] > 0); in processCallback()
3362 mUniqueIDCounts[callbackData.memoryObjectId] -= 1; in processCallback()
3363 size = mSizesPerType[callbackData.objectType].allocatedMemory - callbackData.size; in processCallback()
3364 mSizesPerType[callbackData.objectType].allocatedMemory = size; in processCallback()
3365 mCurrentTotalAllocatedMemory -= callbackData.size; in processCallback()
3369 if ((mUniqueIDCounts[callbackData.memoryObjectId] += 1) > 1) in processCallback()
3373 size = mSizesPerType[callbackData.objectType].importedMemory + callbackData.size; in processCallback()
3374 mSizesPerType[callbackData.objectType].importedMemory = size; in processCallback()
3375 if (mSizesPerType[callbackData.objectType].importedMemoryMax < size) in processCallback()
3377 mSizesPerType[callbackData.objectType].importedMemoryMax = size; in processCallback()
3379 mCurrentTotalImportedMemory += callbackData.size; in processCallback()
3387 ASSERT(mUniqueIDCounts[callbackData.memoryObjectId] > 0); in processCallback()
3388 mUniqueIDCounts[callbackData.memoryObjectId] -= 1; in processCallback()
3389 size = mSizesPerType[callbackData.objectType].importedMemory - callbackData.size; in processCallback()
3390 mSizesPerType[callbackData.objectType].importedMemory = size; in processCallback()
3391 mCurrentTotalImportedMemory -= callbackData.size; in processCallback()
3403 << callbackData.size << "; type=" << std::setw(15) << std::left in processCallback()
3404 << GetVkObjectTypeName(callbackData.objectType) in processCallback()
3405 << "; heapIdx=" << callbackData.heapIndex << "; id=" << std::hex in processCallback()
3406 << callbackData.memoryObjectId << "; handle=" << std::hex in processCallback()
3407 << callbackData.objectHandle << ": Total=" << std::right << std::setw(10) << std::dec in processCallback()