Revert changes to vulkanexamplebase.h and expose displayLinkOutputCb() to DemoViewController

This commit is contained in:
Stephen Saunders 2021-09-11 11:36:27 -04:00
parent 2349738013
commit 28d98b9ee7
4 changed files with 6 additions and 8 deletions

View file

@ -22,7 +22,7 @@ static CVReturn DisplayLinkCallback(CVDisplayLinkRef displayLink,
CVOptionFlags* flagsOut,
void* target) {
//((MVKExample*)target)->renderFrame();
((MVKExample*)target)->nextFrame(); // SRS - Call MVKExample::nextFrame() to animate frames vs. MVKExample::renderFrame() for static image
((MVKExample*)target)->displayLinkOutputCb(); // SRS - Call MVKExample::displayLinkOutputCb() to animate frames vs. MVKExample::renderFrame() for static image
return kCVReturnSuccess;
}