Navigation
Unreal Engine C++ API Reference > Runtime > Core
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/PixelFormat.h |
Include | #include "PixelFormat.h" |
Syntax
struct FPixelFormatInfo
Remarks
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).
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
uint8: 1 | bIs24BitUnormDepthStencil | If false, 32 bit float is assumed (initialized by RHI module - invalid otherwise) |
![]() |
int32 | BlockBytes | |
![]() |
int32 | BlockSizeX | |
![]() |
int32 | BlockSizeY | |
![]() |
int32 | BlockSizeZ | |
![]() |
EPixelFormatCapabilities | Capabilities | Per platform cabilities for the format (initialized by RHI module - invalid otherwise) |
![]() |
const TCHAR * | Name | |
![]() |
int32 | NumComponents | |
![]() |
uint32 | PlatformFormat | Platform specific converted format (initialized by RHI module - invalid otherwise) |
![]() |
uint8: 1 | Supported | Whether the texture format is supported on the current platform/ rendering combination |
![]() |
EPixelFormat | UnrealFormat |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
FPixelFormatInfo
(
EPixelFormat InUnrealFormat, |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
uint64 | Get2DImageSizeInBytes
(
uint32 InWidth, |
Get 2D/3D image/texture size in bytes. |
![]() ![]() |
uint64 | Get2DTextureMipSizeInBytes
(
uint32 InTextureWidth, |
|
![]() ![]() |
uint64 | Get2DTextureSizeInBytes
(
uint32 InTextureWidth, |
|
![]() ![]() |
uint64 | Get3DImageSizeInBytes
(
uint32 InWidth, |
|
![]() ![]() |
uint64 | Get3DTextureMipSizeInBytes
(
uint32 InTextureWidth, |
|
![]() ![]() |
uint64 | Get3DTextureSizeInBytes
(
uint32 InTextureWidth, |
|
![]() ![]() |
uint64 | GetBlockCountForHeight
(
uint32 InHeight |
|
![]() ![]() |
uint64 | GetBlockCountForWidth
(
uint32 InWidth |
Get the number of compressed blocks necessary to hold the given dimensions. |