unreal.PixelFormat

class unreal.PixelFormat

Bases: EnumBase

Describes the format of a each pixel in a graphics buffer. warning:: When you update this, you must add an entry to GPixelFormats(see RenderUtils.cpp) warning:: When you update this, you must add an entries to PixelFormat.h, usually just copy the generated section on the header into EPixelFormat warning:: The *Tools DLLs will also need to be recompiled if the ordering is changed, but should not need code changes.

C++ Source:

  • Module: CoreUObject

  • File: NoExportTypes.h

PF_A1: PixelFormat

25

PF_A16B16G16R16: PixelFormat

19

PF_A2B10G10R10: PixelFormat

18

PF_A32B32G32R32F: PixelFormat

1

PF_A8: PixelFormat

27

PF_A8R8G8B8: PixelFormat

Only used for legacy loading; do NOT use!

Type:

38

PF_ASTC_10X10: PixelFormat

1.28 bpp

Type:

53

PF_ASTC_10X10_HDR: PixelFormat

76

PF_ASTC_10X10_NORM_RG: PixelFormat

90

PF_ASTC_12X12: PixelFormat

0.89 bpp

Type:

54

PF_ASTC_12X12_HDR: PixelFormat

77

PF_ASTC_12X12_NORM_RG: PixelFormat

91

PF_ASTC_4X4: PixelFormat

8.00 bpp

Type:

50

PF_ASTC_4X4_HDR: PixelFormat

73

PF_ASTC_4X4_NORM_RG: PixelFormat

87

PF_ASTC_6X6: PixelFormat

3.56 bpp

Type:

51

PF_ASTC_6X6_HDR: PixelFormat

74

PF_ASTC_6X6_NORM_RG: PixelFormat

88

PF_ASTC_8X8: PixelFormat

2.00 bpp

Type:

52

PF_ASTC_8X8_HDR: PixelFormat

75

PF_ASTC_8X8_NORM_RG: PixelFormat

89

PF_ATC_RGB: PixelFormat

ATITC format.

Type:

41

PF_ATC_RGBA_E: PixelFormat

ATITC format.

Type:

42

PF_ATC_RGBA_I: PixelFormat

ATITC format.

Type:

43

PF_B5G5R5A1_UNORM: PixelFormat

72

PF_B8G8R8A8: PixelFormat

UNORM (0..1), corresponds to FColor. Unpacks as rgba in the shader.

Type:

2

PF_BC4: PixelFormat

High precision single channel block compressed, equivalent to a single channel BC5, 8 bytes per 4x4 block.

Type:

39

PF_BC5: PixelFormat

23

PF_BC6H: PixelFormat

55

PF_BC7: PixelFormat

56

PF_D24: PixelFormat

20

PF_DEPTH_STENCIL: PixelFormat

A depth+stencil format with platform-specific implementation, for use with render targets.

Type:

11

PF_DXT1: PixelFormat

5

PF_DXT3: PixelFormat

6

PF_DXT5: PixelFormat

7

PF_ETC1: PixelFormat

45

PF_ETC2_R11_EAC: PixelFormat

69

PF_ETC2_RG11_EAC: PixelFormat

70

PF_ETC2_RGB: PixelFormat

46

PF_ETC2_RGBA: PixelFormat

47

PF_FLOAT_R11G11B10: PixelFormat

A low precision floating point format, unsigned. Use FFloat3Packed on the CPU.

Type:

26

PF_FLOAT_RGB: PixelFormat

Same as PF_FloatR11G11B10

Type:

9

PF_FLOAT_RGBA: PixelFormat

RGBA 16 bit signed FP format. Use FFloat16Color on the CPU.

Type:

10

PF_G16: PixelFormat

4

PF_G16R16: PixelFormat

14

PF_G16R16F: PixelFormat

15

PF_G16R16F_FILTER: PixelFormat

16

PF_G16R16_SNORM: PixelFormat

78

PF_G32R32F: PixelFormat

17

PF_G8: PixelFormat

UNORM red (0..1)

Type:

3

PF_L8: PixelFormat

58

PF_NV12: PixelFormat

67

PF_P010: PixelFormat

86

PF_PLATFORM_HDR_0: PixelFormat

64

PF_PLATFORM_HDR_1: PixelFormat

65

PF_PLATFORM_HDR_2: PixelFormat

66

PF_PVRTC2: PixelFormat

30

PF_PVRTC4: PixelFormat

31

PF_R16F: PixelFormat

21

PF_R16F_FILTER: PixelFormat

22

PF_R16G16B16A16_SINT: PixelFormat

35

PF_R16G16B16A16_SNORM: PixelFormat

63

PF_R16G16B16A16_UINT: PixelFormat

34

PF_R16G16B16A16_UNORM: PixelFormat

62

PF_R16G16_UINT: PixelFormat

49

PF_R16_SINT: PixelFormat

33

PF_R16_UINT: PixelFormat

32

PF_R32G32B32A32_UINT: PixelFormat

48

PF_R32G32B32F: PixelFormat

82

PF_R32G32B32_SINT: PixelFormat

81

PF_R32G32B32_UINT: PixelFormat

80

PF_R32G32_UINT: PixelFormat

68

PF_R32_FLOAT: PixelFormat

13

PF_R32_SINT: PixelFormat

29

PF_R32_UINT: PixelFormat

28

PF_R5G6B5_UNORM: PixelFormat

36

PF_R64_UINT: PixelFormat

84

PF_R8: PixelFormat

71

PF_R8G8: PixelFormat

UNORM red, green (0..1).

Type:

40

PF_R8G8B8A8: PixelFormat

37

PF_R8G8B8A8_SNORM: PixelFormat

SNORM (-1..1), corresponds to FFixedRGBASigned8.

Type:

61

PF_R8G8B8A8_UINT: PixelFormat

60

PF_R8G8_UINT: PixelFormat

79

PF_R8_SINT: PixelFormat

83

PF_R8_UINT: PixelFormat

57

PF_R9G9B9EXP5: PixelFormat

85

PF_SHADOW_DEPTH: PixelFormat

A depth format with platform-specific implementation, for use with render targets.

Type:

12

PF_UNKNOWN: PixelFormat

0

PF_UYVY: PixelFormat

8

PF_V8U8: PixelFormat

SNORM red, green (-1..1). Not supported on all RHI e.g. Metal

Type:

24

PF_X24_G8: PixelFormat

Used for creating SRVs to alias a DepthStencil buffer to read Stencil. Don’t use for creating textures.

Type:

44

PF_XGXR8: PixelFormat

59