swizzle
TypeScriptget swizzle(): _Metal_MTLTextureSwizzleChannelsSwift declarationvar swizzle: MTLTextureSwizzleChannelsstruct · iOS 15.0+ · SDK 27.1
struct CustomMaterialTextureA texture object that you use to create custom materials.
get swizzle(): _Metal_MTLTextureSwizzleChannelsSwift declarationvar swizzle: MTLTextureSwizzleChannelsset swizzle(value: _Metal_MTLTextureSwizzleChannels)Swift declarationvar swizzle: MTLTextureSwizzleChannelsget resource(): TextureResourceSwift declarationvar resource: TextureResourceThe texture resource you use to create a custom texture.
set resource(value: TextureResource)Swift declarationvar resource: TextureResourceThe texture resource you use to create a custom texture.
static init(texture: MaterialParameters_Texture): CustomMaterial_CustomMaterialTextureSwift declarationinit(_ texture: MaterialParameters.Texture)Creates a custom texture by copying values from a material parameters texture. - Parameters: - texture: The material parameters texture object.
static init33104(resource: TextureResource, swizzle: _Metal_MTLTextureSwizzleChannels): CustomMaterial_CustomMaterialTextureSwift declarationinit(_ resource: TextureResource, _ swizzle: MTLTextureSwizzleChannels)Creates a custom texture from a texture resource. - Parameters: - resource: The texture resource.
static init97329(resource: TextureResource): CustomMaterial_CustomMaterialTextureSwift declarationinit(_ resource: TextureResource)Creates a custom texture from a texture resource. - Parameters: - resource: The texture resource.
No declarations were skipped in this snapshot.