heapTextureSizeAndAlign(descriptor:)
Returns the size and alignment, in bytes, of a texture if you create it from a heap.
Declaration
func heapTextureSizeAndAlign(descriptor desc: MTLTextureDescriptor) -> MTLSizeAndAlignParameters
- desc:
An Mtltexturedescriptor instance.
Return Value
An MTLSizeAndAlign instance.
Discussion
Use this method to help estimate an appropriate size for a new heap before you create it.