init(name:semantic:textureSampler:)
Initializes a material property with a texture sampler object.
Declaration
convenience init(name: String, semantic: MDLMaterialSemantic, textureSampler: MDLTextureSampler?)Parameters
Return Value
A new material property object whose type property is MDLMaterialPropertyType.texture.
Discussion
Unlike the URL to a texture image, a texture sampler object specifies both a texture image and parameters for rendering that image.