Bagikan melalui


Microsoft.Xna.Framework.Graphics.PackedVector Namespace

Represents data types with components that are not multiples of 8 bits.

Interfaces

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

Structures

Name Description
Public Structure Alpha8 Packed vector type containing a single 8 bit normalized W value in the range of 0 to 1.
Public Structure 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.
Public Structure Bgra5551 Packed vector type containing unsigned normalized values, ranging from 0 to 1, using 5 bits each for x, y, and z, and 1 bit for w.
Public Structure Byte4 Packed vector type containing four 8-bit unsigned integer values, ranging from 0 to 255.
Public Structure HalfSingle Packed vector type containing a single 16 bit floating point value.
Public Structure HalfVector2 Packed vector type containing two 16-bit floating-point values.
Public Structure HalfVector4 Packed vector type containing four 16-bit floating-point values.
Public Structure Normalized101010 Packed vector type containing signed normalized values, ranging from −1 to 1, using 10 bits each for x, y, and z, and 2 bits for w.
Public Structure NormalizedByte2 Packed vector type containing two 8-bit signed normalized values, ranging from −1 to 1.
Public Structure NormalizedByte4 Packed vector type containing four 8-bit signed normalized values, ranging from −1 to 1.
Public Structure NormalizedShort2 Packed vector type containing two 16-bit signed normalized values, ranging from −1 to 1.
Public Structure NormalizedShort4 Packed vector type containing four 16-bit signed normalized values, ranging from −1 to 1.
Public Structure Rg32 Packed vector type containing two 16-bit unsigned normalized values, ranging from 0 to 1.
Public Structure Rgba1010102 Packed vector type containing unsigned normalized values, ranging from 0 to 1, using 10 bits each for x, y, and z, and 2 bits for w.
Public Structure Rgba32 Packed vector type containing four 8-bit unsigned normalized values, ranging from 0 to 1.
Public Structure Rgba64 Packed vector type containing four 16-bit unsigned normalized values, ranging from 0 to 1.
Public Structure Short2 Packed vector type containing two 16-bit signed integer values.
Public Structure Short4 Packed vector type containing four 16-bit signed integer values.
Public Structure UInt101010 Packed vector type containing unsigned integer values, using 10 bits each for x, y, and z (ranging from 0 to 1023), and 2 bits for w (ranging from 0 to 3).