objc2_metal_kit

Static MTKTextureLoaderOptionCubeLayout

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

Identifier to be used in an options NSDictionary with an MTKTextureLoaderCubeLayout NSString specifying whether to create a cubemap from a 2D image

The NSString value specified with this string must be one option of MTKTextureLoaderCubeLayout. If this option is omitted, the texture loader will not create cubemaps from 2D textures. This option cannot be used with PVR files, KTX files, or MDLTextures, which support cube textures directly.

See also Appleā€™s documentation