Table of Contents

Namespace Microsoft.Xna.Framework.Graphics.PackedVector

Structs

Alpha8

Packed vector type containing a single 8 bit normalized W values that is ranging from 0 to 1.

Bgr565

Packed vector type containing unsigned normalized values ranging from 0 to 1. The x and z components use 5 bits, and the y component uses 6 bits.

Bgra4444

Packed vector type containing unsigned normalized values, ranging from 0 to 1, using 4 bits each for x, y, z, and w.

Bgra5551

Packed vector type containing unsigned normalized values ranging from 0 to 1. The x , y and z components use 5 bits, and the w component uses 1 bit.

Byte4

Packed vector type containing four 8-bit unsigned integer values, ranging from 0 to 255.

HalfSingle

Packed vector type containing a single 16-bit floating point

HalfVector2

Packed vector type containing two 16-bit floating-point values.

HalfVector4

Packed vector type containing four 16-bit floating-point values.

NormalizedByte2

Packed vector type containing two 8-bit signed normalized values, ranging from −1 to 1.

NormalizedByte4

Packed vector type containing four 8-bit signed normalized values, ranging from −1 to 1.

NormalizedShort2

Packed vector type containing two 16-bit signed normalized values, ranging from −1 to 1.

NormalizedShort4

Packed vector type containing four 16-bit signed normalized values, ranging from −1 to 1.

Rg32

Packed vector type containing two 16-bit unsigned normalized values ranging from 0 to 1.

Rgba1010102

Packed vector type containing unsigned normalized values ranging from 0 to 1. The x, y and z components use 10 bits, and the w component uses 2 bits.

Rgba64

Packed vector type containing four 16-bit unsigned normalized values ranging from 0 to 1.

Short2

Packed vector type containing two 16-bit signed integer values.

Short4

Packed vector type containing four 16-bit signed integer values.

Interfaces

IPackedVector

Interface that converts packed vector types to and from Vector4 values, allowing multiple encodings to be manipulated in a generic way.

IPackedVector<TPacked>

Converts packed vector types to and from Vector4 values.