MTLSize
A type that represents one, two, or three dimensions of a type instance, such as an array or texture.
Declaration
struct MTLSizeMentioned in
Overview
Metal has many types that represent arrays of discrete elements, such as:
A texture, which has an array of pixel elements
A thread grid, which has an array of computational threads
Types and methods that work with these array-like types frequently have an MTLSize property or parameter that refers to the extents of a specific instance of the type, or a region within the instance.
The following are some examples for setting a size for an instance that has less than three dimentions: