One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

MaterialParameters.Texture

struct · iOS 15.0+ · SDK 27.1

struct Texture

Members (10)

get · iOS 15.0+

sampler

TypeScript
get sampler(): MaterialParameters_Texture_Sampler
Swift declaration
var sampler: MaterialParameters.Texture.Sampler { get set }
set · iOS 15.0+

sampler

TypeScript
set sampler(value: MaterialParameters_Texture_Sampler)
Swift declaration
var sampler: MaterialParameters.Texture.Sampler { get set }
get · iOS 18.0+

swizzle

TypeScript
get swizzle(): _Metal_MTLTextureSwizzleChannels
Swift declaration
var swizzle: MTLTextureSwizzleChannels

Channel swizzle to use when RealityKit reads or samples from the texture. The default value performs no swizzle, sampling red from the texture's red channel, green from the texture's green channel, blue from the texture's blue channel, and alpha from the texture's alpha channel.

set · iOS 18.0+

swizzle

TypeScript
set swizzle(value: _Metal_MTLTextureSwizzleChannels)
Swift declaration
var swizzle: MTLTextureSwizzleChannels

Channel swizzle to use when RealityKit reads or samples from the texture. The default value performs no swizzle, sampling red from the texture's red channel, green from the texture's green channel, blue from the texture's blue channel, and alpha from the texture's alpha channel.

get · iOS 15.0+

uvIndex

TypeScript
get uvIndex(): number
Swift declaration
var uvIndex: Int
set · iOS 15.0+

uvIndex

TypeScript
set uvIndex(value: number)
Swift declaration
var uvIndex: Int
get · iOS 15.0+

resource

TypeScript
get resource(): TextureResource
Swift declaration
var resource: TextureResource
set · iOS 15.0+

resource

TypeScript
set resource(value: TextureResource)
Swift declaration
var resource: TextureResource
init · iOS 15.0+

init

TypeScript
static initSampler(resource: TextureResource, sampler: MaterialParameters_Texture_Sampler): MaterialParameters_Texture
Swift declaration
init(_ resource: TextureResource, sampler: MaterialParameters.Texture.Sampler)
init · iOS 15.0+

init

TypeScript
static init(resource: TextureResource): MaterialParameters_Texture
Swift declaration
init(_ resource: TextureResource)

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →