Enumeration

MDLMaterialPropertyType

Options for the data type of a material property, used by the type property.

Declaration

enum MDLMaterialPropertyType : UInt

Overview

Reading a material property’s value using an accessor for a type other than that corresponding to the type property produces undefined results.

Topics

Constants

case none

The material property’s value has not been initialized.

case string

The material’s value is a string.

case URL

The material property’s value is a URL—typically, a URL referencing a texture image.

case texture

The material property’s value is a MDLTextureSampler object that provides both a texture image and texture rendering parameters.

case color

The material property’s value is a uniform color.

case float

The material property’s value is a floating-point scalar.

case float2

The material property’s value is a 2-component floating-point vector.

case float3

The material property’s value is a 3-component floating-point vector.

case float4

The material property’s value is a 4-component floating-point vector.

case matrix44

The material property’s value is a 4 x 4 floating-point matrix.

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