Resource creation
Load assets with input/output queues and make various resource instances, such as buffers, textures, acceleration structures, and memory heaps.
Topics
Working with resource heaps
makeHeap(descriptor:)heapBufferSizeAndAlign(length:options:)heapTextureSizeAndAlign(descriptor:)heapAccelerationStructureSizeAndAlign(size:)heapAccelerationStructureSizeAndAlign(descriptor:)MTLSizeAndAlign
Creating buffers
maxBufferLengthmakeBuffer(length:options:)makeBuffer(bytes:length:options:)makeBuffer(bytesNoCopy:length:options:deallocator:)
Creating textures
makeTexture(descriptor:)makeTexture(descriptor:iosurface:plane:)makeSharedTexture(descriptor:)makeSharedTexture(handle:)minimumLinearTextureAlignment(for:)minimumTextureBufferAlignment(for:)
Creating samplers
Working with sparse textures
sparseTileSize(textureType:pixelFormat:sampleCount:sparsePageSize:)sparseTileSize(with:pixelFormat:sampleCount:)sparseTileSizeInBytes(sparsePageSize:)sparseTileSizeInBytesconvertSparsePixelRegions(_:toTileRegions:withTileSize:alignmentMode:numRegions:)convertSparseTileRegions(_:toPixelRegions:withTileSize:numRegions:)MTLSparsePageSizeMTLSparseTextureRegionAlignmentMode
Creating acceleration structures for ray tracing
makeAccelerationStructure(descriptor:)makeAccelerationStructure(size:)accelerationStructureSizes(descriptor:)MTLAccelerationStructureSizes
Creating argument buffer encoders
argumentBuffersSupportmaxArgumentBufferSamplerCountmakeArgumentEncoder(arguments:)makeArgumentEncoder(bufferBinding:)