One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

TextureResource.Compression

struct · iOS 18.0+ · SDK 27.1

struct Compression

The compression to apply when importing an image as a texture. Compression allows varying levels of memory usage gains at the cost of image-quality reduction.

Members (2)

get · iOS 18.0+

none

TypeScript
static get none(): Promise<TextureResource_Compression>
Swift declaration
static var none: TextureResource.Compression { get }

A texture you can create with no compression. If you export this to a `.reality` file using ``Entity/write(to:)``, the texture remains uncompressed.

get · iOS 18.0+

default

TypeScript
static get default(): Promise<TextureResource_Compression>
Swift declaration
static var `default`: TextureResource.Compression { get }

A texture you can create and export with lossy compression. The selected compression preserves perceptual texture details (no aggressive compression).

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →