Navigation
API > API/Runtime > API/Runtime/VulkanRHI > API/Runtime/VulkanRHI/FVulkanDynamicRHI
- FDynamicRHI::RHICalcTexturePlatformSize()
- FVulkanDynamicRHI::RHICalcTexturePlatformSize()
References
| Module | VulkanRHI |
| Header | /Engine/Source/Runtime/VulkanRHI/Public/VulkanDynamicRHI.h |
| Include | #include "VulkanDynamicRHI.h" |
| Source | /Engine/Source/Runtime/VulkanRHI/Private/VulkanTexture.cpp |
virtual FRHICalcTextureSizeResult RHICalcTexturePlatformSize
&40;
FRHITextureDesc const & Desc,
uint32 FirstMipIndex
&41;
Remarks
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.
- The computed size and alignment of the platform texture resource.
Parameters
| Name | Description |
|---|---|
| Desc | The texture descriptor (width, height, format etc) |
| FirstMipIndex | The index of the most detailed mip to consider in the memory size calculation. |