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

Method BInitCompositor

samples/hellovr_dx12/hellovr_dx12_main.cpp:665–676  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: Initialize Compositor. Returns true if the compositor was successfully initialized, false otherwise. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

663// successfully initialized, false otherwise.
664//-----------------------------------------------------------------------------
665bool CMainApplication::BInitCompositor()
666{
667 vr::EVRInitError peError = vr::VRInitError_None;
668
669 if ( !vr::VRCompositor() )
670 {
671 dprintf( "Compositor initialization failed. See log file for details\n" );
672 return false;
673 }
674
675 return true;
676}
677
678
679//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

dprintfFunction · 0.70

Tested by

no test coverage detected