Navigation
Unreal Engine C++ API Reference > Developer > TextureFormat > Interfaces
Inheritance Hierarchy
- ITextureFormat
- FChildTextureFormat
References
Module | TextureFormat |
Header | /Engine/Source/Developer/TextureFormat/Public/Interfaces/ITextureFormat.h |
Include | #include "Interfaces/ITextureFormat.h" |
Syntax
class ITextureFormat
Remarks
Interface for texture compression modules.
Note that if you add any virtual functions to this, they almost certainly need to be plumbed through ChildTextureFormat! This is why the Format is passed around - ChildTextureFormat needs it to resolve to the base format.
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Virtual destructor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | Checks whether this texture format can compress in parallel. | |
![]() ![]() ![]() |
bool | CanAcceptNonF32Source
(
FName Format |
|
![]() ![]() |
bool | CompressImage
(
const FImage& Image, |
Compresses a single image. |
![]() ![]() ![]() |
bool | CompressImageEx
(
const FImage* Images, |
Compress an image (or images for a miptail) into a single mip blob. |
![]() ![]() ![]() |
bool | CompressImageTiled
(
const FImage* Images, |
Compress an image (or images for a miptail) into a single mip blob with device-specific tiling. |
![]() ![]() ![]() |
FCbObject | ExportGlobalFormatConfig
(
const FTextureBuildSettings& BuildSettings |
Obtains the current global format config object for this texture format. |
![]() ![]() ![]() |
FString | If this is an Alternate Texture Format, return the prefix to apply | |
![]() ![]() ![]() |
const FChildTextureFormat * | ||
![]() ![]() ![]() |
FString | GetDerivedDataKeyString
(
const FTextureBuildSettings& InBuildSettings, |
Gets an optional derived data key string, so that the compressor can rely upon the number of mips, size of texture, etc, when compressing the image |
![]() ![]() ![]() |
EPixelFormat | GetEncodedPixelFormat
(
const FTextureBuildSettings& InBuildSettings, |
Returns what the compressed pixel format will be for a given format and the given settings. |
![]() ![]() |
FName | GetEncoderName
(
FName Format |
Return the name of the encoder used for the given format.Used for debugging and UI. |
![]() ![]() ![]() |
FEncodedTextureExtendedData | GetExtendedDataForTexture
(
const FEncodedTextureDescription& InTextureDescription, |
Generate and return any out-of-band data that needs to be saved for a given encoded texture description. |
![]() ![]() ![]() |
FName | Identify the latest sdk version for this texture encoder (note the SdkVersion is different than the TextureFormat Version) | |
![]() ![]() |
void | GetSupportedFormats
(
TArray< FName >& OutFormats |
Gets the list of supported formats. |
![]() ![]() |
uint16 | GetVersion
(
FName Format, |
Gets the current version of the specified texture format. |
![]() ![]() ![]() |
bool | PrepareTiling
(
const FImage* Images, |
Prepares to compresses a single image with tiling. |
![]() ![]() ![]() |
void | ReleaseTiling
(
const FTextureBuildSettings& BuildSettings, |
Cleans up the FTilerSettings object once it is finished. |
![]() ![]() ![]() |
bool | SetTiling
(
const FTextureBuildSettings& BuildSettings, |
Sets the tiling settings after device-specific tiling has been performed. |
![]() ![]() ![]() |
bool | SupportsEncodeSpeed
(
FName Format |
Exposes whether the format supports the fast/final encode speed switching in project settings. |
![]() ![]() ![]() |
bool | Whether device-specific tiling is supported by the compressor. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FTilerSettings | An object produced by PrepareTiling and used by SetTiling and CompressImageTiled. |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
FTextureFormatCompressorCaps | Hasn't been used in a while. | |
![]() ![]() ![]() |
FTextureFormatCompressorCaps | GetFormatCapabilitiesEx
(
const FTextureBuildSettings& BuildSettings, |
Use GetExtendedDataForTexture instead to get the same information without the actual image bits. |
![]() ![]() ![]() |
EPixelFormat | GetPixelFormatForImage
(
const FTextureBuildSettings& BuildSettings, |
Use GetEncodedPixelFormat(BuildSettings, bImageHasAlphaChannel) instead |
![]() ![]() ![]() |
bool | Legacy API - do not use |