IMAGE_FORMAT
Description
Enumerations used by GetRenderTargetEx. Clientside only.
Some additional image formats are accepted by GetRenderTargetEx, but don't currently have enums in Lua and aren't listed here. See VTF Enumerations.
Values
IMAGE_FORMAT_DEFAULT | -1 | |
IMAGE_FORMAT_RGBA8888 | 0 | Red, Green, Blue, Alpha, 8 bit per pixel. |
IMAGE_FORMAT_ABGR8888 | 1 | Probably legacy format. Alpha, Red, Green, Blue, 8 bit per pixel. |
IMAGE_FORMAT_RGB888 | 2 | Red, Green, Blue, 8 bit per pixel. |
IMAGE_FORMAT_BGR888 | 3 | Legacy format. Blue, Green, Red order, 8 bit per pixel. |
IMAGE_FORMAT_RGB565 | 4 | Red, Green, Blue, 5 bit per pixel for Red and Blue channels, 6 bits for Green. Effectively uses less video memory. |
IMAGE_FORMAT_ARGB8888 | 11 | IMAGE_FORMAT_RGBA8888 with different byte order. Legacy format. |
IMAGE_FORMAT_BGRA8888 | 12 | IMAGE_FORMAT_RGBA8888 with different byte order. Legacy format. |
IMAGE_FORMAT_RGBA16161616 | 25 | RGBA, but 16 bits per pixel. Was meant to be used for "Integer mode" for HDR. Probably legacy format. |
IMAGE_FORMAT_RGBA16161616F | 24 | RGBA, but floating point 16 bits per pixel. Is used for "Float mode" HDR. |
Description
The following enums do not exist in game and are listed for reference.
Values
IMAGE_FORMAT_I8 | 5 | Grayscale format (black and white), 8 bits per pixel. |
IMAGE_FORMAT_IA88 | 6 | Grayscale format (black and white) with alpha support, 8 bits per pixel/channel. |
IMAGE_FORMAT_A8 | 8 | Unknown legacy format. 8 bit alpha? Same as I8 besides assigned meaning/name to the channel? |
IMAGE_FORMAT_BGRX8888 | 16 | Unknown legacy format. Same as BGRA8888 , but without defining meaning to the 4th channel? |
IMAGE_FORMAT_BGR565 | 17 | RGB565 , but reverse color order. Legacy format. |
IMAGE_FORMAT_BGRX5551 | 18 | Unknown legacy format. |
IMAGE_FORMAT_BGRA4444 | 19 | Unknown legacy format. |
IMAGE_FORMAT_BGRA5551 | 21 | Unknown legacy format. |
IMAGE_FORMAT_R32F | 27 | Single color channel, 32bit float per pixel. Works only with mat_disable_d3d9ex 0 . Not working on dx 92. |
IMAGE_FORMAT_RGBA32323232F | 29 | 32bit floating point RGBA. Works only with mat_disable_d3d9ex 0 |
IMAGE_FORMAT_DXT1 | 13 | Compressed texture format. See https://en.wikipedia.org/wiki/S3_Texture_Compression. |
IMAGE_FORMAT_DXT3 | 14 | Compressed texture format. Do not use. See https://en.wikipedia.org/wiki/S3_Texture_Compression. |
IMAGE_FORMAT_DXT5 | 15 | Compressed texture format. Better quality than DXT1, supports alpha. See https://en.wikipedia.org/wiki/S3_Texture_Compression. |