MCPcopy Create free account
hub / github.com/aliasIsolation/aliasIsolation / Map_hook

Function Map_hook

src/dll/taa.cpp:224–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222Unmap_t Unmap_orig = nullptr;
223
224HRESULT WINAPI Map_hook(ID3D11DeviceContext *context, _In_ ID3D11Resource *pResource, _In_ UINT Subresource,
225 _In_ D3D11_MAP MapType, _In_ UINT MapFlags, _Out_ D3D11_MAPPED_SUBRESOURCE *pMappedResource)
226{
227 ZoneScopedN(__FUNCTION__);
228
229 HRESULT res = Map_orig(context, pResource, Subresource, MapType, MapFlags, pMappedResource);
230
231 if (g_alienResources.cbDefaultXSC == pResource)
232 {
233 g_alienResources.mappedCbDefaultXSC = (CbDefaultXSC *)pMappedResource->pData;
234 }
235 else if (g_alienResources.cbDefaultVSC == pResource)
236 {
237 g_alienResources.mappedCbDefaultVSC = (CbDefaultVSC *)pMappedResource->pData;
238 }
239 else if (g_alienResources.cbDefaultPSC == pResource)
240 {
241 g_alienResources.mappedCbDefaultPSC = (CbDefaultPSC *)pMappedResource->pData;
242 }
243
244 return res;
245}
246
247static glm::vec2 getFrameJitter()
248{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected