MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / vulkanDebugCallback

Function vulkanDebugCallback

src/app/vulkan/DeviceManager_VK.cpp:254–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254static VKAPI_ATTR VkBool32 VKAPI_CALL vulkanDebugCallback(
255 vk::DebugReportFlagsEXT flags,
256 vk::DebugReportObjectTypeEXT objType,
257 uint64_t obj,
258 size_t location,
259 int32_t code,
260 const char* layerPrefix,
261 const char* msg,
262 void* userData)
263{
264 const DeviceManager_VK* manager = (const DeviceManager_VK*)userData;
265
266 if (manager)
267 {
268 const auto& ignored = manager->GetDeviceParams().ignoredVulkanValidationMessageLocations;
269 const auto found = std::find(ignored.begin(), ignored.end(), location);
270 if (found != ignored.end())
271 return VK_FALSE;
272 }
273
274 donut::log::warning("[Vulkan: location=0x%zx code=%d, layerPrefix='%s'] %s", location, code, layerPrefix, msg);
275
276 return VK_FALSE;
277}
278
279void DeviceManager_VK::installDebugCallback()
280{

Callers

nothing calls this directly

Calls 3

warningFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected