sampler
TypeScriptget sampler(): MaterialParameters_Texture_SamplerSwift declarationvar sampler: MaterialParameters.Texture.Sampler { get set }struct · iOS 15.0+ · SDK 27.1
struct Textureget sampler(): MaterialParameters_Texture_SamplerSwift declarationvar sampler: MaterialParameters.Texture.Sampler { get set }set sampler(value: MaterialParameters_Texture_Sampler)Swift declarationvar sampler: MaterialParameters.Texture.Sampler { get set }get swizzle(): _Metal_MTLTextureSwizzleChannelsSwift declarationvar swizzle: MTLTextureSwizzleChannelsChannel 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 swizzle(value: _Metal_MTLTextureSwizzleChannels)Swift declarationvar swizzle: MTLTextureSwizzleChannelsChannel 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 uvIndex(): numberSwift declarationvar uvIndex: Intset uvIndex(value: number)Swift declarationvar uvIndex: Intget resource(): TextureResourceSwift declarationvar resource: TextureResourceset resource(value: TextureResource)Swift declarationvar resource: TextureResourcestatic initSampler(resource: TextureResource, sampler: MaterialParameters_Texture_Sampler): MaterialParameters_TextureSwift declarationinit(_ resource: TextureResource, sampler: MaterialParameters.Texture.Sampler)static init(resource: TextureResource): MaterialParameters_TextureSwift declarationinit(_ resource: TextureResource)No declarations were skipped in this snapshot.