MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / getEndFrameOfRange

Function getEndFrameOfRange

layersvt/screenshot.cpp:284–290  ·  view source on GitHub ↗

Get maximum frame number of the frame range FrameRange* pFrameRange, the specified frame rang return: maximum frame number of the frame range, if it's unlimited range, the return will be SCREEN_SHOT_FRAMES_UNLIMITED

Source from the content-addressed store, hash-verified

282// maximum frame number of the frame range,
283// if it's unlimited range, the return will be SCREEN_SHOT_FRAMES_UNLIMITED
284int getEndFrameOfRange(const FrameRange *pFrameRange) {
285 int endFrameOfRange = SCREEN_SHOT_FRAMES_UNLIMITED;
286 if (pFrameRange->count != SCREEN_SHOT_FRAMES_UNLIMITED) {
287 endFrameOfRange = pFrameRange->startFrame + (pFrameRange->count - 1) * pFrameRange->interval;
288 }
289 return endFrameOfRange;
290}
291
292bool Settings::isFrameToCapture(int frame) const {
293 if (screenShotFrameRange.valid) {

Callers 2

isFrameToCaptureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected