UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TextureResource.h File Reference

Go to the source code of this file.

Classes

struct  FTexture2DMipMap
 
class  FTextureResource
 
class  FVirtualTexture2DResource
 
class  FTexture2DDynamicResource
 
class  FDeferredUpdateResource
 
class  FTextureRenderTargetResource
 
class  FTextureRenderTarget2DResource
 
class  FTextureRenderTargetCubeResource
 

Macros

#define MAX_TEXTURE_SOURCE_SLICES   6
 

Functions

ENGINE_API FName GetDefaultTextureFormatName (const class ITargetPlatform *TargetPlatform, const class UTexture *Texture, int32 LayerIndex, bool bSupportCompressedVolumeTexture, int32 Unused_BlockSize, bool bSupportFilteredFloat32Textures)
 
ENGINE_API FName GetDefaultTextureFormatName (const class ITargetPlatformSettings *TargetPlatformSettings, const class ITargetPlatformControls *TargetPlatformControls, const class UTexture *Texture, int32 LayerIndex, bool bSupportCompressedVolumeTexture, int32 Unused_BlockSize, bool bSupportFilteredFloat32Textures)
 
ENGINE_API void GetDefaultTextureFormatNamePerLayer (TArray< FName > &OutFormatNames, const class ITargetPlatform *TargetPlatform, const class UTexture *Texture, bool bSupportCompressedVolumeTexture, int32 Unused_BlockSize, bool bSupportFilteredFloat32Textures)
 
ENGINE_API void GetDefaultTextureFormatNamePerLayer (TArray< FName > &OutFormatNames, const class ITargetPlatformSettings *TargetPlatformSettings, const class ITargetPlatformControls *TargetPlatformControls, const class UTexture *Texture, bool bSupportCompressedVolumeTexture, int32 Unused_BlockSize, bool bSupportFilteredFloat32Textures)
 
ENGINE_API void GetAllDefaultTextureFormats (const class ITargetPlatform *TargetPlatform, TArray< FName > &OutFormats)
 
ENGINE_API void GetAllDefaultTextureFormats (const class ITargetPlatformSettings *TargetPlatformSettings, TArray< FName > &OutFormats)
 

Macro Definition Documentation

◆ MAX_TEXTURE_SOURCE_SLICES

#define MAX_TEXTURE_SOURCE_SLICES   6

Maximum number of slices in texture source art.

Function Documentation

◆ GetAllDefaultTextureFormats() [1/2]

ENGINE_API void GetAllDefaultTextureFormats ( const class ITargetPlatform TargetPlatform,
TArray< FName > &  OutFormats 
)

◆ GetAllDefaultTextureFormats() [2/2]

ENGINE_API void GetAllDefaultTextureFormats ( const class ITargetPlatformSettings TargetPlatformSettings,
TArray< FName > &  OutFormats 
)

◆ GetDefaultTextureFormatName() [1/2]

ENGINE_API FName GetDefaultTextureFormatName ( const class ITargetPlatform TargetPlatform,
const class UTexture Texture,
int32  LayerIndex,
bool  bSupportCompressedVolumeTexture,
int32  Unused_BlockSize,
bool  bSupportFilteredFloat32Textures 
)

Do not call these (GetDefaultTextureFormatName) directly, use GetPlatformTextureFormatNamesWithPrefix instead this should only be called by TargetPlatform::GetTextureFormats() Gets the name of a format for the given LayerIndex

◆ GetDefaultTextureFormatName() [2/2]

ENGINE_API FName GetDefaultTextureFormatName ( const class ITargetPlatformSettings TargetPlatformSettings,
const class ITargetPlatformControls TargetPlatformControls,
const class UTexture Texture,
int32  LayerIndex,
bool  bSupportCompressedVolumeTexture,
int32  Unused_BlockSize,
bool  bSupportFilteredFloat32Textures 
)

◆ GetDefaultTextureFormatNamePerLayer() [1/2]

ENGINE_API void GetDefaultTextureFormatNamePerLayer ( TArray< FName > &  OutFormatNames,
const class ITargetPlatform TargetPlatform,
const class UTexture Texture,
bool  bSupportCompressedVolumeTexture,
int32  Unused_BlockSize,
bool  bSupportFilteredFloat32Textures 
)

Gets an array of format names for each layer in the texture

◆ GetDefaultTextureFormatNamePerLayer() [2/2]

ENGINE_API void GetDefaultTextureFormatNamePerLayer ( TArray< FName > &  OutFormatNames,
const class ITargetPlatformSettings TargetPlatformSettings,
const class ITargetPlatformControls TargetPlatformControls,
const class UTexture Texture,
bool  bSupportCompressedVolumeTexture,
int32  Unused_BlockSize,
bool  bSupportFilteredFloat32Textures 
)