Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FDynamicRHI
Description
Computes the total GPU memory a texture resource with the specified parameters will occupy on the current RHI platform. Also returns the required alignment for the resource.
| Name | RHICalcTexturePlatformSize |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/DynamicRHI.h |
| Include Path | #include "DynamicRHI.h" |
FRHICalcTextureSizeResult RHICalcTexturePlatformSize
(
FRHITextureDesc const & Desc,
uint32 FirstMipIndex
)
- The computed size and alignment of the platform texture resource.
Parameters
| Name | Remarks |
|---|---|
| Desc | The texture descriptor (width, height, format etc) |
| FirstMipIndex | The index of the most detailed mip to consider in the memory size calculation. |