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

Function GetCapture

renderdoc/replay/app_api.cpp:81–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81static uint32_t GetCapture(uint32_t idx, char *filename, uint32_t *pathlength, uint64_t *timestamp)
82{
83 rdcarray<CaptureData> caps = RenderDoc::Inst().GetCaptures();
84
85 if(idx >= (uint32_t)caps.size())
86 {
87 if(filename)
88 filename[0] = 0;
89 if(pathlength)
90 *pathlength = 0;
91 if(timestamp)
92 *timestamp = 0;
93 return 0;
94 }
95
96 CaptureData &c = caps[idx];
97
98 if(filename)
99 memcpy(filename, c.path.c_str(), sizeof(char) * (c.path.size() + 1));
100 if(pathlength)
101 *pathlength = uint32_t(c.path.size() + 1);
102 if(timestamp)
103 *timestamp = c.timestamp;
104
105 return 1;
106}
107
108static void SetCaptureFileComments(const char *filePath, const char *comments)
109{

Callers 13

openCapture_triggeredMethod · 0.85
saveCapture_triggeredMethod · 0.85
checkAllowDeleteMethod · 0.85
checkAllowCloseMethod · 0.85
cleanItemsMethod · 0.85
fileSavedMethod · 0.85
unsavedCaptureCountMethod · 0.85
captureCopiedMethod · 0.85

Calls 4

GetCapturesMethod · 0.80
memcpyFunction · 0.50
sizeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected