Instance Property
pixelSize
The number of bytes from the first byte of one pixel to the first byte of the next pixel, in storage order. (Includes padding.)
SDKs
- iOS 10.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 10.0+
Framework
- Metal Performance Shaders
Declaration
var pixelSize: Int { get }
See Also
Properties
enum MTLTextureType
The dimension of each image, including whether multiple images are arranged into an array or a cube.
enum MTLPixelFormat
The data formats that describe the organization and characteristics of individual pixels in a texture.
var precision: Int
The number of bits of numeric precision available for each feature channel.