| 3133 | pBoxedInfo->pvkDestroyDebugReportCallbackEXT(instance, callback, pAllocator); |
| 3134 | } |
| 3135 | void 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) |
| 3156 | void vk_DebugMarkerSetObjectNameEXT(CPU* cpu) { |
| 3157 | VkDevice device = (VkDevice)getVulkanPtr(cpu->memory, ARG1); |
nothing calls this directly
no test coverage detected