Contents

sparsePageSize

The page size for any resources you allocate from the heaps you create with this descriptor.

Declaration

var sparsePageSize: MTLSparsePageSize { get set }

Discussion

This property’s default value is 16 kilobytes (MTLSparsePageSize.size16), which is a smaller page size option that can help reduce your app’s memory usage. However, you can reduce operational overhead for sparse textures with larger page sizes, such as MTLSparsePageSize.size64 and MTLSparsePageSize.size256. These operations include blit commands and the configuration of sparse texture mappings (see Blit passes and MTLResourceStateCommandEncoder, respectively).

See Also

Configuring a heap