MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / dprintf

Function dprintf

samples/hellovr_vulkan/hellovr_vulkan_main.cpp:326–339  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: Outputs a set of optional arguments to debugging output, using the printf format setting specified in fmt*. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

324// the printf format setting specified in fmt*.
325//-----------------------------------------------------------------------------
326void dprintf( const char *fmt, ... )
327{
328 va_list args;
329 char buffer[ 2048 ];
330
331 va_start( args, fmt );
332 vsnprintf( buffer, sizeof( buffer ), fmt, args );
333 va_end( args );
334
335 if ( g_bPrintf )
336 printf( "%s", buffer );
337
338 OutputDebugStringA( buffer );
339}
340
341//-----------------------------------------------------------------------------
342// Purpose: VK_EXT_debug_report callback

Callers 15

VKDebugMessageCallbackFunction · 0.70
CreateVulkanBufferFunction · 0.70
~CMainApplicationMethod · 0.70
BInitMethod · 0.70
BInitVulkanInstanceMethod · 0.70
BInitVulkanDeviceMethod · 0.70
BInitVulkanSwapchainMethod · 0.70
BInitVulkanMethod · 0.70
BInitCompositorMethod · 0.70
ProcessVREventMethod · 0.70
RenderFrameMethod · 0.70
CreateAllShadersMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected