MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / vk_DebugReportMessageEXT

Function vk_DebugReportMessageEXT

source/vulkan/vk_host.cpp:3135–3154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3133 pBoxedInfo->pvkDestroyDebugReportCallbackEXT(instance, callback, pAllocator);
3134}
3135void vk_DebugReportMessageEXT(CPU* cpu) {
3136 VkInstance instance = (VkInstance)getVulkanPtr(cpu->memory, ARG1);
3137 BoxedVulkanInfo* pBoxedInfo = getInfoFromHandle(cpu->memory, ARG1);
3138 VkDebugReportFlagsEXT flags = (VkDebugReportFlagsEXT)ARG2;
3139 VkDebugReportObjectTypeEXT objectType = (VkDebugReportObjectTypeEXT)ARG3;
3140 uint64_t object = (uint64_t)cpu->memory->readq(ARG4);
3141 size_t location = (size_t)ARG5;
3142 int32_t messageCode = (int32_t)ARG6;
3143 char* pLayerPrefix = nullptr;
3144 if (ARG7) {
3145 pLayerPrefix = (char*)cpu->memory->lockReadOnlyMemory(ARG7, (U32)(cpu->memory->strlen(ARG7)+1) * sizeof(char));
3146 }
3147 char* pMessage = nullptr;
3148 if (ARG8) {
3149 pMessage = (char*)cpu->memory->lockReadOnlyMemory(ARG8, (U32)(cpu->memory->strlen(ARG8)+1) * sizeof(char));
3150 }
3151 pBoxedInfo->pvkDebugReportMessageEXT(instance, flags, objectType, object, location, messageCode, pLayerPrefix, pMessage);
3152 cpu->memory->unlockMemory((U8*)pLayerPrefix);
3153 cpu->memory->unlockMemory((U8*)pMessage);
3154}
3155// return type: VkResult(4 bytes)
3156void vk_DebugMarkerSetObjectNameEXT(CPU* cpu) {
3157 VkDevice device = (VkDevice)getVulkanPtr(cpu->memory, ARG1);

Callers

nothing calls this directly

Calls 6

getVulkanPtrFunction · 0.85
getInfoFromHandleFunction · 0.85
readqMethod · 0.80
lockReadOnlyMemoryMethod · 0.80
strlenMethod · 0.80
unlockMemoryMethod · 0.80

Tested by

no test coverage detected