MCPcopy Create free account
hub / github.com/WinDurango/WinDurango / D3DFreeGraphicsMemory

Function D3DFreeGraphicsMemory

projects/WinDurango.D3D11X/src/d3d11.x.cpp:79–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 DWORD flProtect = 0;
78
79 if (!ppAddress || AlignmentBytes > 0x20000) //Alignment must be less than 128KB.
80 return E_INVALIDARG;
81
82 if (AlignmentBytes <= 0x10000)
83 flAllocationType = MEM_LARGE_PAGES | MEM_GRAPHICS | MEM_COMMIT | MEM_RESERVE;
84
85 //Apparently PAGE_GRAPHICS flags were used on those and they appear on winnt.h but aren't supported on Windows.
86 if (Flags == D3D11_GRAPHICS_MEMORY_ACCESS_CPU_CACHE_COHERENT)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected