Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FRHITextureDesc > API/Runtime/RHI/FRHITextureDesc/CalcMemorySizeEstimate
References
| Module | RHI |
| Header | /Engine/Source/Runtime/RHI/Public/RHIResources.h |
| Include | #include "RHIResources.h" |
| Source | /Engine/Source/Runtime/RHI/Private/RHI.cpp |
uint64 CalcMemorySizeEstimate
&40;
uint32 FirstMipIndex,
uint32 LastMipIndex
&41; const
Remarks
Returns an estimated total memory size the described texture will occupy in GPU memory. This is an estimate because it only considers the dimensions / format etc of the texture, not any specifics about platform texture layout.
To get a true measure of a texture resource for the current running platform RHI, use RHICalcTexturePlatformSize().
Parameters
| Name | Description |
|---|---|
| FirstMipIndex | the index of the most detailed mip to consider in the memory size calculation. Must be < NumMips and <= LastMipIndex. |
| LastMipIndex | the index of the least detailed mip to consider in the memory size calculation. Must be < NumMips and >= FirstMipIndex. |