MCPcopy Create free account
hub / github.com/baldurk/renderdoc / GetDeviceProtocol

Method GetDeviceProtocol

renderdoc/core/core.cpp:1857–1872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1855}
1856
1857IDeviceProtocolHandler *RenderDoc::GetDeviceProtocol(const rdcstr &protocol)
1858{
1859 rdcstr p = protocol;
1860
1861 // allow passing in an URL with ://
1862 int32_t offs = p.find("://");
1863 if(offs >= 0)
1864 p.erase(offs, p.size() - offs);
1865
1866 auto it = m_Protocols.find(p);
1867
1868 if(it != m_Protocols.end())
1869 return it->second();
1870
1871 return NULL;
1872}
1873
1874rdcarray<CaptureFileFormat> RenderDoc::GetCaptureFileFormats()
1875{

Calls 5

secondMethod · 0.80
findMethod · 0.45
eraseMethod · 0.45
sizeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected