Skip to content

Commit

Permalink
Add fake EstimateVRAM callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukem9 committed Dec 17, 2023
1 parent 330cc0f commit de18c91
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/maindll/NvNGXDirectX12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,13 @@ NGXResult GetCurrentSettingsCallback(NGXHandle *InstanceHandle, NGXInstanceParam
return NGX_SUCCESS;
}

void EstimateVRAMCallback()
NGXResult EstimateVRAMCallback(uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, size_t *EstimatedSize)
{
__debugbreak();
if (!EstimatedSize)
return 0xBAD00005;

*EstimatedSize = 150 * 1024 * 1024; // Assume 150MB
return NGX_SUCCESS;
}

NGXDLLEXPORT NGXResult NVSDK_NGX_D3D12_PopulateParameters_Impl(NGXInstanceParameters *Parameters)
Expand Down

0 comments on commit de18c91

Please sign in to comment.