Enumeration

MDLMaterialPropertyType

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

Declaration

typedef enum MDLMaterialPropertyType : NSUInteger {
    ...
} MDLMaterialPropertyType;

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

MDLMaterialPropertyTypeNone

The material property’s value has not been initialized.

MDLMaterialPropertyTypeString

The material’s value is a string.

MDLMaterialPropertyTypeURL

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

MDLMaterialPropertyTypeTexture

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

MDLMaterialPropertyTypeColor

The material property’s value is a uniform color.

MDLMaterialPropertyTypeFloat

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

MDLMaterialPropertyTypeFloat2

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

MDLMaterialPropertyTypeFloat3

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

MDLMaterialPropertyTypeFloat4

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

MDLMaterialPropertyTypeMatrix44

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