MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / Unmap

Method Unmap

IntelPresentMon/FlashInjectorLibrary/Generated/API_DXGI.cpp:396–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394 }
395
396 HRESULT IDXGISurface_Wrapper::Unmap()
397 {
398 HRESULT result = {};
399 auto& ctx = Context::GetInstance();
400 auto callScope = ctx.IncrementCallScope();
401 if (callScope == 1)
402 {
403 bool skipCall = PreCall<API_IDXGISURFACE_UNMAP>::Run(result, this);
404 if (skipCall)
405 {
406 ctx.DecrementCallScope();
407 return result;
408 }
409
410 result = GetWrappedObjectAs<IDXGISurface>()->Unmap();
411
412 PostCall<API_IDXGISURFACE_UNMAP>::Run(result, this);
413 }
414 else
415 {
416 result = GetWrappedObjectAs<IDXGISurface>()->Unmap();
417 }
418 ctx.DecrementCallScope();
419 return result;
420 }
421
422 HRESULT IDXGISurface1_Wrapper::GetDC(BOOL Discard, HDC* phdc)
423 {

Callers 2

StartFrameMethod · 0.80
EndFrameMethod · 0.80

Calls 2

IncrementCallScopeMethod · 0.80
DecrementCallScopeMethod · 0.80

Tested by

no test coverage detected