Structure

MTLSizeAndAlign

The size and alignment of a resource, in bytes.

Declaration

struct MTLSizeAndAlign

Topics

Specifying Size and Alignment

var size: Int

The size of the resource, in bytes.

var align: Int

The alignment of the resource, in bytes.

Initializing Size and Alignment

init()

Creates a default instance.

init(size: Int, align: Int)

Creates a new instance initialized to the given values.

See Also

Essentials

Image Filter Graph with Heaps and Fences

Demonstrates how to use heaps and fences to optimize a multistage image filter.

protocol MTLHeap

A memory pool from which you can suballocate resources.

class MTLHeapDescriptor

An object you use to configure new heap objects.