Skip to content

Commit ff0e1cb

Browse files
committed
Log missing extensions
1 parent 4be5c3d commit ff0e1cb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

layer_gpu_timeline/source/device.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,17 @@ Device::Device(Instance* _instance,
100100

101101
initDriverDeviceDispatchTable(device, nlayerGetProcAddress, driver);
102102

103+
// Emit a log if debug utils entry points did not load. In this scenario
104+
// the layer will still be loaded and send metadata packets to the server
105+
// socket, but the Perfetto data will not contain any tag labels. We will
106+
// therefore be unable to cross-reference the two data streams to produce a
107+
// usable visualization.
108+
if (!driver.vkCmdBeginDebugUtilsLabelEXT)
109+
{
110+
LAYER_LOG(" - ERROR: Device does not expose VK_EXT_debug_utils");
111+
LAYER_LOG(" Perfetto data will not contain cross-ref tags");
112+
}
113+
103114
// Init the shared comms module for the first device built
104115
if (!commsModule)
105116
{

0 commit comments

Comments
 (0)