Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FRHITextureDesc
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint64 CalcMemorySizeEstimate
(
uint32 FirstMipIndex |
RHIResources.h | ||
uint64 CalcMemorySizeEstimate
(
uint32 FirstMipIndex, |
Returns an estimated total memory size the described texture will occupy in GPU memory. | RHIResources.h |
CalcMemorySizeEstimate(uint32)
| Name | CalcMemorySizeEstimate |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/RHIResources.h |
| Include Path | #include "RHIResources.h" |
uint64 CalcMemorySizeEstimate
(
uint32 FirstMipIndex
) const
CalcMemorySizeEstimate(uint32, uint32)
Description
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().
| Name | CalcMemorySizeEstimate |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/RHIResources.h |
| Include Path | #include "RHIResources.h" |
| Source | /Engine/Source/Runtime/RHI/Private/RHI.cpp |
uint64 CalcMemorySizeEstimate
(
uint32 FirstMipIndex,
uint32 LastMipIndex
) const
Parameters
| Name | Remarks |
|---|---|
| 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. |