Instance Property


The data type stored in the material property’s value.


var type: MDLMaterialPropertyType { get set }


Each semantic value has one or more data types that are appropriate for its value. For example, the MDLMaterialSemantic.baseColor semantic provides per-pixel colors for a rendered surface, so appropriate values for that semantic include scalars (interpreted as a grayscale color), colors, texture images, or URLs that refer to texture images. The MDLMaterialSemantic.ambientOcclusionScale semantic provides a scale factor for the effect of ambient occlusion shading, so an appropriate value is a scalar or a grayscale image that varies that scalar value across the surface of the material.

See Also

Using a Material Property

var name: String

A descriptive name for the material property.

var semantic: MDLMaterialSemantic

The semantic meaning for the material property’s value.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software