![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <RendererInterface.h>
Public Member Functions | |
| FPooledRenderTargetDesc () | |
| bool | Compare (const FPooledRenderTargetDesc &rhs, bool bExact) const |
| bool | IsCubemap () const |
| bool | Is2DTexture () const |
| bool | Is3DTexture () const |
| bool | IsArray () const |
| bool | IsValid () const |
| FIntVector | GetSize () const |
| FString | GenerateInfoString () const |
| void | Reset () |
Public Attributes | ||
| const TCHAR * | DebugName = TEXT("UnknownTexture") | |
| FClearValueBinding | ClearValue | |
| ETextureCreateFlags | Flags = TexCreate_None | |
| EPixelFormat | Format = PF_Unknown | |
| EPixelFormat | UAVFormat = PF_Unknown | |
| FIntPoint | Extent = FIntPoint::ZeroValue | |
| uint16 | Depth = 0 | |
| uint16 | ArraySize = 1 | |
| uint8 | NumMips = 0 | |
| uint8 | NumSamples = 1 | |
| uint8 | FastVRAMPercentage = 0xFF | |
| TArray< EPixelFormat, TInlineAllocator< 1 > > | AliasableFormats | |
| union { | ||
| struct { | ||
| uint8 bIsArray: 1 | ||
| uint8 bIsCubemap: 1 | ||
| uint8 bReserved0: 6 | ||
| } | ||
| uint8 PackedBits | ||
| }; | ||
All necessary data to create a render target from the pooled render targets.
|
inline |
Default constructor, use one of the factory functions below to make a valid description
|
inline |
Comparison operator to test if a render target can be reused
|
inlinestatic |
Factory function to create 2D array texture description
| InFlags | bit mask combined from elements of ETextureCreateFlags e.g. TexCreate_UAV |
|
inlinestatic |
Factory function to create 2D texture description
| InFlags | bit mask combined from elements of ETextureCreateFlags e.g. TexCreate_UAV |
|
inlinestatic |
Factory function to create cube map array texture description
| InFlags | bit mask combined from elements of ETextureCreateFlags e.g. TexCreate_UAV |
|
inlinestatic |
Factory function to create cube map texture description
| InFlags | bit mask combined from elements of ETextureCreateFlags e.g. TexCreate_UAV |
|
inlinestatic |
Factory function to create 3D texture description
| InFlags | bit mask combined from elements of ETextureCreateFlags e.g. TexCreate_UAV |
|
inline |
for debugging purpose
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| union { ... } FPooledRenderTargetDesc |
| TArray<EPixelFormat, TInlineAllocator<1> > FPooledRenderTargetDesc::AliasableFormats |
Formats this texture is aliasable to
| uint16 FPooledRenderTargetDesc::ArraySize = 1 |
>1 if a texture array should be used (not supported on DX9)
| uint8 FPooledRenderTargetDesc::bIsArray |
true if an array texture. Note that ArraySize still can be 1
| uint8 FPooledRenderTargetDesc::bIsCubemap |
true if a cubemap texture
| uint8 FPooledRenderTargetDesc::bReserved0 |
Unused flags.
| FClearValueBinding FPooledRenderTargetDesc::ClearValue |
Value allowed for fast clears for this target.
only set a pointer to memory that never gets released
| uint16 FPooledRenderTargetDesc::Depth = 0 |
0, unless it's texture array or volume texture
| FIntPoint FPooledRenderTargetDesc::Extent = FIntPoint::ZeroValue |
In pixels, (0,0) if not set, (x,0) for cube maps, todo: make 3d int vector for volume textures
| uint8 FPooledRenderTargetDesc::FastVRAMPercentage = 0xFF |
Resource memory percentage which should be allocated onto fast VRAM (hint-only). (encoding into 8bits, 0..255 -> 0%..100%)
| ETextureCreateFlags FPooledRenderTargetDesc::Flags = TexCreate_None |
The flags that must be set on both the shader-resource and the targetable texture. bit mask combined from elements of ETextureCreateFlags e.g. TexCreate_UAV
| EPixelFormat FPooledRenderTargetDesc::Format = PF_Unknown |
Texture format e.g. PF_B8G8R8A8
| uint8 FPooledRenderTargetDesc::NumMips = 0 |
Number of mips
| uint8 FPooledRenderTargetDesc::NumSamples = 1 |
Number of MSAA samples, default: 1
| uint8 FPooledRenderTargetDesc::PackedBits |
| EPixelFormat FPooledRenderTargetDesc::UAVFormat = PF_Unknown |
Texture format used when creating the UAV (if TexCreate_UAV is also passed in TargetableFlags, ignored otherwise). PF_Unknown == use default (same as Format)