| 222 | Unmap_t Unmap_orig = nullptr; |
| 223 | |
| 224 | HRESULT 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 | |
| 247 | static glm::vec2 getFrameJitter() |
| 248 | { |
nothing calls this directly
no outgoing calls
no test coverage detected