MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetDriverInfo

Method GetDriverInfo

trinity/Tr2VideoAdapters.cpp:229–241  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: Get driver information for the display adapter. Arguments: info - (out) Tr2VideoDriver object with video driver properties Return Value: ALResult code of operation --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

227// ALResult code of operation
228// --------------------------------------------------------------------------------------
229ALResult Tr2VideoAdapter::GetDriverInfo( Tr2VideoDriver** info )
230{
231 *info = nullptr;
232
233 Tr2VideoDriverInfo driverInfo;
234 FORWARD_HR( Tr2DriverUtilities::GetDriverVersion( m_info.deviceID, driverInfo ) );
235
236 Tr2VideoDriverPtr result;
237 result.CreateInstance();
238 result->m_info = driverInfo;
239 *info = result.Detach();
240 return S_OK;
241}

Callers

nothing calls this directly

Calls 3

GetDriverVersionFunction · 0.85
CreateInstanceMethod · 0.80
DetachMethod · 0.80

Tested by

no test coverage detected