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

Method GetDesc

IntelPresentMon/FlashInjectorLibrary/Generated/API_DXGI.cpp:339–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337 }
338
339 HRESULT IDXGISurface_Wrapper::GetDesc(DXGI_SURFACE_DESC* pDesc)
340 {
341 HRESULT result = {};
342 auto& ctx = Context::GetInstance();
343 auto callScope = ctx.IncrementCallScope();
344 if (callScope == 1)
345 {
346 bool skipCall = PreCall<API_IDXGISURFACE_GETDESC>::Run(result, this, pDesc);
347 if (skipCall)
348 {
349 ctx.DecrementCallScope();
350 return result;
351 }
352
353 result = GetWrappedObjectAs<IDXGISurface>()->GetDesc(
354 pDesc
355 );
356
357 PostCall<API_IDXGISURFACE_GETDESC>::Run(result, this, pDesc);
358 }
359 else
360 {
361 result = GetWrappedObjectAs<IDXGISurface>()->GetDesc(pDesc);
362 }
363 ctx.DecrementCallScope();
364 return result;
365 }
366
367 HRESULT IDXGISurface_Wrapper::Map(DXGI_MAPPED_RECT* pLockedRect, UINT MapFlags)
368 {

Callers 2

InitOverlayFunction · 0.80

Calls 2

IncrementCallScopeMethod · 0.80
DecrementCallScopeMethod · 0.80

Tested by

no test coverage detected