![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <RHIResources.h>
Inheritance diagram for FRHITextureDesc:Public Member Functions | |
| FRHITextureDesc ()=default | |
| FRHITextureDesc (const FRHITextureDesc &Other) | |
| FRHITextureDesc (ETextureDimension InDimension) | |
| FRHITextureDesc (ETextureDimension InDimension, ETextureCreateFlags InFlags, EPixelFormat InFormat, FClearValueBinding InClearValue, FIntPoint InExtent, uint16 InDepth, uint16 InArraySize, uint8 InNumMips, uint8 InNumSamples, uint32 InExtData) | |
| bool | operator== (const FRHITextureDesc &Other) const |
| bool | operator!= (const FRHITextureDesc &Other) const |
| FRHITextureDesc & | operator= (const FRHITextureDesc &Other) |
| bool | IsTexture2D () const |
| bool | IsTexture3D () const |
| bool | IsTextureCube () const |
| bool | IsTextureArray () const |
| bool | IsMipChain () const |
| bool | IsMultisample () const |
| FIntVector | GetSize () const |
| void | Reset () |
| bool | IsValid () const |
| RHI_API uint64 | CalcMemorySizeEstimate (uint32 FirstMipIndex, uint32 LastMipIndex) const |
| uint64 | CalcMemorySizeEstimate (uint32 FirstMipIndex=0) const |
| uint16 | GetSubresourceCount () const |
Static Public Member Functions | |
| static bool | CheckValidity (const FRHITextureDesc &Desc, const TCHAR *Name) |
Public Attributes | |
| ETextureCreateFlags | Flags = TexCreate_None |
| FClearValueBinding | ClearValue |
| FRHIGPUMask | GPUMask = FRHIGPUMask::All() |
| uint32 | ExtData = 0 |
| FIntPoint | Extent = FIntPoint(1, 1) |
| uint16 | Depth = 1 |
| uint16 | ArraySize = 1 |
| uint8 | NumMips = 1 |
| uint8 | NumSamples = 1 |
| ETextureDimension | Dimension = ETextureDimension::Texture2D |
| EPixelFormat | Format = PF_Unknown |
| EPixelFormat | UAVFormat = PF_Unknown |
| uint8 | FastVRAMPercentage = 0xFF |
| TArray< EPixelFormat, TInlineAllocator< 1 > > | AliasableFormats |
Friends | |
| uint32 | GetTypeHash (const FRHITextureDesc &Desc) |
Descriptor used to create a texture resource
|
default |
|
inline |
|
inline |
|
inline |
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().
| 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. |
|
inlinestatic |
Check the validity.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns whether this descriptor conforms to requirements.
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
| TArray<EPixelFormat, TInlineAllocator<1> > FRHITextureDesc::AliasableFormats |
Array of pixel formats that this texture can alias to
| uint16 FRHITextureDesc::ArraySize = 1 |
The number of array elements in the texture. (Keep at 1 if dimension is 3D).
| FClearValueBinding FRHITextureDesc::ClearValue |
Clear value to use when fast-clearing the texture.
| uint16 FRHITextureDesc::Depth = 1 |
Depth of the texture if the dimension is 3D.
| ETextureDimension FRHITextureDesc::Dimension = ETextureDimension::Texture2D |
Texture dimension to use when creating the RHI texture.
| uint32 FRHITextureDesc::ExtData = 0 |
Platform-specific additional data. Used for offline processed textures on some platforms.
| uint8 FRHITextureDesc::FastVRAMPercentage = 0xFF |
Resource memory percentage which should be allocated onto fast VRAM (hint-only). (encoding into 8bits, 0..255 -> 0%..100%)
| ETextureCreateFlags FRHITextureDesc::Flags = TexCreate_None |
Texture flags passed on to RHI texture.
| EPixelFormat FRHITextureDesc::Format = PF_Unknown |
Pixel format used to create RHI texture.
| FRHIGPUMask FRHITextureDesc::GPUMask = FRHIGPUMask::All() |
| uint8 FRHITextureDesc::NumMips = 1 |
Number of mips in the texture mip-map chain.
| uint8 FRHITextureDesc::NumSamples = 1 |
Number of samples in the texture. >1 for MSAA.
| EPixelFormat FRHITextureDesc::UAVFormat = PF_Unknown |
Texture format used when creating the UAV. PF_Unknown means to use the default one (same as Format).