Skip to content

Instantly share code, notes, and snippets.

@yorung
Created July 23, 2016 08:35
Show Gist options
  • Save yorung/1dc7dc690806125f79aa6783af04655d to your computer and use it in GitHub Desktop.
Save yorung/1dc7dc690806125f79aa6783af04655d to your computer and use it in GitHub Desktop.
[DX12] Wait GPU commands finish that committed 2 frames before.
frameIndex = swapChain->GetCurrentBackBufferIndex();
FrameResources& res = frameResources[frameIndex];
WaitFenceValue(fence, res.fenceValueToGuard);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment