Contents

init(name:semantic:textureSampler:)

Initializes a material property with a texture sampler object.

Declaration

convenience init(name: String, semantic: MDLMaterialSemantic, textureSampler: MDLTextureSampler?)

Parameters

  • name:

    A descriptive name for the material property. For details, see the Name property.

  • semantic:

    The semantic meaning for the material property’s value. For details, see the Semantic property.

  • textureSampler:

    A texture sampler object.

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.

See Also

Creating a Material Property