One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

TextureResource.Contents

struct · iOS 18.0+ · SDK 27.1

struct Contents

An object that references the pixel data for each mipmap level of a texture. Mipmaps are progressively smaller versions of the same texture image. Each level is half the size of the previous level, with a minimum size of 1 pixel in each dimension.

Members (1)

init · iOS 18.0+

init

TypeScript
static init(mipmapLevels: Array<TextureResource_Contents_MipmapLevel>): Promise<TextureResource_Contents>
Swift declaration
init(mipmapLevels: [TextureResource.Contents.MipmapLevel])

Creates a texture contents object from an array of mipmaps. - Parameters: - mipmapLevels: Pixel data for each mipmap level, starting with mipmap level `0`. Supply at least one mipmap level. - Note: Creating 3D textures requires you to build `MipmapLevel` with `mip()` methods that have a `bytesPerImage` parameter.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →