objc2_metal_kit

Static MTKTextureLoaderOptionAllocateMipmaps

Source
pub unsafe static MTKTextureLoaderOptionAllocateMipmaps: &'static MTKTextureLoaderOption
Available on crate feature MTKTextureLoader only.
Expand description

Identifier to be used in an options NSDictionary with a boolean NSNumber specifying whether to allocate memory for mipmaps when creating the texture

If the boolean value specified with this string is true, the resulting Metal texture will have been created with mipmaps whose contents are undefined. It is the responsibility of the caller to fill out the contents of the mipmap data unless MTLTextureLoaderOptionGenerateMipmaps is specified. If the file being loaded contains data for mipmaps (such as in a PVR or KTX file) this option does not need to be specified. In those cases the mipmap memory will be allocated and the image data loaded.

See also Appleā€™s documentation