Contents

tileWidth

The width of the tiles, in pixels, a render pass you create with this descriptor applies to its attachments.

Declaration

var tileWidth: Int { get set }

Discussion

For tile-based rendering, Metal divides each render attachment into smaller regions, or tiles. The property’s default is 0, which tells Metal to select a size that fits in tile memory.

See Tailor your apps for Apple GPUs and tile-based deferred rendering for more information about tiles, tile memory, and deferred rendering.