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.