# NIF File Format Documentation

NIF Objects | Compound Types | Enum Types | Basic Types | File Versions

## NiPersistentSrcTextureRendererData

### Attributes

Name | Type | Arg | Arr1 | Arr2 | Cond | Description | From | To
--- | --- | --- | --- | --- | --- | --- | --- | ---
From NiObject
From ATextureRenderData
Pixel Format | PixelFormat |  |  |  |  | The format of the pixels in this internally stored image. |  |
Red Mask | uint |  |  |  |  | 0x000000ff (for 24bpp and 32bpp) or 0x00000000 (for 8bpp) |  | 10.2.0.0
Green Mask | uint |  |  |  |  | 0x0000ff00 (for 24bpp and 32bpp) or 0x00000000 (for 8bpp) |  | 10.2.0.0
Blue Mask | uint |  |  |  |  | 0x00ff0000 (for 24bpp and 32bpp) or 0x00000000 (for 8bpp) |  | 10.2.0.0
Alpha Mask | uint |  |  |  |  | 0xff000000 (for 32bpp) or 0x00000000 (for 24bpp and 8bpp) |  | 10.2.0.0
Bits Per Pixel | byte |  |  |  |  | Bits per pixel, 0 (?), 8, 24 or 32. |  | 10.2.0.0
Unknown 3 Bytes | byte |  | 3 |  |  | Zero? |  | 10.2.0.0
Unknown 8 Bytes | byte |  | 8 |  |  | [96,8,130,0,0,65,0,0] if 24 bits per pixel [129,8,130,32,0,65,12,0] if 32 bits per pixel [34,0,0,0,0,0,0,0] if 8 bits per pixel [4,0,0,0,0,0,0,0] if 0 (?) bits per pixel |  | 10.2.0.0
Unknown Int | uint |  |  |  |  | Seems to always be zero. | 10.1.0.0 | 10.2.0.0
Bits Per Pixel | byte |  |  |  |  | Bits per pixel, 0 (?), 8, 24 or 32. | 20.0.0.4 |
Unknown Int 2 | int |  |  |  |  | Unknown. Could be reference pointer. | 20.0.0.4 |
Unknown Int 3 | uint |  |  |  |  | Seems to always be zero. | 20.0.0.4 |
Flags | byte |  |  |  |  | Flags | 20.0.0.4 |
Unknown Int 4 | uint |  |  |  |  | Unkown. Often zero. | 20.0.0.4 |
Unknown Byte 1 | byte |  |  |  |  | Unknown. | 20.3.0.6 |
Channels | ChannelData |  | 4 |  |  | Channel Data | 20.0.0.4 |
Palette | Ref<NiPalette> |  |  |  |  | Link to NiPalette, for 8-bit textures. |  |
Num Mipmaps | uint |  |  |  |  | Number of mipmaps in the texture. |  |
Bytes Per Pixel | uint |  |  |  |  | Bytes per pixel (Bits Per Pixel / 8). |  |
Mipmaps | MipMap |  | Num Mipmaps |  |  | Mipmap descriptions (width, height, offset). |  |
From NiPersistentSrcTextureRendererData
Num Pixels | uint |  |  |  |  | Unknown |  |
Unknown Int 6 | uint |  |  |  |  | Unknown, same as the number of pixels? / number of blocks? |  |
Num Faces | uint |  |  |  |  | Unknown |  |
Unknown Int 7 | uint |  |  |  |  | Unknown |  |
Pixel Data | byte |  | Num Faces | Num Pixels |  | Raw pixel data holding the mipmaps. Mipmap zero is the full-size texture and they get smaller by half as the number increases. |  |

### Parent Of