Instance Property

channelCount

The number of channels per texel.

Declaration

@property(nonatomic, readonly) NSUInteger channelCount;

Discussion

For example, a grayscale texture has one channel (brightness) per texel, and a color texture may have three (RGB) or four (RGBA) channels per texel.

See Also

Examining Texture Attributes

dimensions

The width and height, in texels, of the texture image.

rowStride

The number of bytes between the first texel in a row of image data and the first texel in the next row.

channelEncoding

The data format for each channel value per texel.

isCube

A Boolean value that indicates whether the texture is a cube textures.

mipLevelCount

The number of mipmap levels contained in the texture image data.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software