![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <PixelFormat.h>
Public Attributes | |
| const TCHAR * | Name |
| EPixelFormat | UnrealFormat |
| int32 | BlockSizeX |
| int32 | BlockSizeY |
| int32 | BlockSizeZ |
| int32 | BlockBytes |
| int32 | NumComponents |
| EPixelFormatCapabilities | Capabilities = EPixelFormatCapabilities::None |
| uint32 | PlatformFormat { 0 } |
| uint8 | Supported: 1 |
| uint8 | bIs24BitUnormDepthStencil: 1 |
Information about a pixel format. The majority of this structure is valid after static init, however RHI does keep some state in here that is initialized by that module and should not be used by general use programs that don't have RHI (so noted in comments).
|
delete |
| FPixelFormatInfo::FPixelFormatInfo | ( | EPixelFormat | InUnrealFormat, |
| const TCHAR * | InName, | ||
| int32 | InBlockSizeX, | ||
| int32 | InBlockSizeY, | ||
| int32 | InBlockSizeZ, | ||
| int32 | InBlockBytes, | ||
| int32 | InNumComponents, | ||
| bool | InSupported | ||
| ) |
Get 2D/3D image/texture size in bytes. This is for storage of the encoded image data, and does not adjust for any GPU alignment/padding constraints. It is also not valid for tiled or packed mip tails (i.e. cooked mips for consoles). Only use these when you know you're working with bog standard textures/images in block based pixel formats.
| uint64 FPixelFormatInfo::Get2DTextureMipSizeInBytes | ( | uint32 | InTextureWidth, |
| uint32 | InTextureHeight, | ||
| uint32 | InMipIndex | ||
| ) | const |
| uint64 FPixelFormatInfo::Get2DTextureSizeInBytes | ( | uint32 | InTextureWidth, |
| uint32 | InTextureHeight, | ||
| uint32 | InMipCount | ||
| ) | const |
| uint64 FPixelFormatInfo::Get3DImageSizeInBytes | ( | uint32 | InWidth, |
| uint32 | InHeight, | ||
| uint32 | InDepth | ||
| ) | const |
| uint64 FPixelFormatInfo::Get3DTextureMipSizeInBytes | ( | uint32 | InTextureWidth, |
| uint32 | InTextureHeight, | ||
| uint32 | InTextureDepth, | ||
| uint32 | InMipIndex | ||
| ) | const |
| uint64 FPixelFormatInfo::Get3DTextureSizeInBytes | ( | uint32 | InTextureWidth, |
| uint32 | InTextureHeight, | ||
| uint32 | InTextureDepth, | ||
| uint32 | InMipCount | ||
| ) | const |
Get the number of compressed blocks necessary to hold the given dimensions.
| uint8 FPixelFormatInfo::bIs24BitUnormDepthStencil |
| int32 FPixelFormatInfo::BlockBytes |
| int32 FPixelFormatInfo::BlockSizeX |
| int32 FPixelFormatInfo::BlockSizeY |
| int32 FPixelFormatInfo::BlockSizeZ |
| EPixelFormatCapabilities FPixelFormatInfo::Capabilities = EPixelFormatCapabilities::None |
Per platform cabilities for the format (initialized by RHI module - invalid otherwise)
| const TCHAR* FPixelFormatInfo::Name |
| int32 FPixelFormatInfo::NumComponents |
| uint32 FPixelFormatInfo::PlatformFormat { 0 } |
Platform specific converted format (initialized by RHI module - invalid otherwise)
| uint8 FPixelFormatInfo::Supported |
Whether the texture format is supported on the current platform/ rendering combination
| EPixelFormat FPixelFormatInfo::UnrealFormat |