## siImageBitDepth

### Introduced

v5.0

### Description

This enumeration lists the allowed bit depths for each channel of an image with the specified channel types. Not all bit depths are allowed for all channel types.

### C# Syntax

    siImageBitDepth.siImageBitDepthUnknown                                      // -1
    siImageBitDepth.siImageBitDepthInteger1                                     // 0
    siImageBitDepth.siImageBitDepthInteger2                                     // 1
    siImageBitDepth.siImageBitDepthInteger4                                     // 2
    siImageBitDepth.siImageBitDepthInteger8                                     // 3
    siImageBitDepth.siImageBitDepthInteger16                                    // 4
    siImageBitDepth.siImageBitDepthInteger32                                    // 5
    siImageBitDepth.siImageBitDepthFloat16                                      // 20
    siImageBitDepth.siImageBitDepthFloat32                                      // 21

Constant | Value | Description
--- | --- | ---
siImageBitDepthUnknown | -1 | Unknown image bit depth. Only returned if an error occured.
siImageBitDepthInteger1 | 0 | Integer, 1 bit per channel.
siImageBitDepthInteger2 | 1 | Integer, 2 bits per channel.
siImageBitDepthInteger4 | 2 | Integer, 4 bits per channel.
siImageBitDepthInteger8 | 3 | Integer, 8 bits per channel.
siImageBitDepthInteger16 | 4 | Integer, 16 bits per channel.
siImageBitDepthInteger32 | 5 | Integer, 32 bits per channel.
siImageBitDepthFloat16 | 20 | Floating point, 16 bits per channel (half float).
siImageBitDepthFloat32 | 21 | Floating point, 32 bits per channel (full float).

### Applies To

Framebuffer Renderer.OutputFormatDef AddWritableImageSource