Class

MDLTextureSampler

An object that pairs a source of texture data with sampling parameters to be used in rendering the texture.

Declaration

@interface MDLTextureSampler : NSObject

Overview

You use texture samplers as material property values with the MDLMaterialProperty class.

Topics

Working with Texture Parameters

texture

The texture object that provides image data for sampling.

hardwareFilter

An object that describes filtering modes for sampling from the texture.

transform

The transformation to be applied to texture coordinate data before sampling from the texture.

Relationships

Inherits From

See Also

Textures

MDLTexture

A source of texel data to be used in rendering material surface appearances.

MDLCheckerboardTexture

A generator of texel data that creates a checkerboard pattern with two specified colors.

MDLColorSwatchTexture

A generator of texel data that creates a gradient between two specified colors.

MDLNoiseTexture

A generator of texel data that creates a field of random noise.

MDLNormalMapTexture

A generator of texel data that computes a normal map from a supplied texture.

MDLSkyCubeTexture

A generator of texel data that creates cube textures using a physically realistic simulation of the sunlit sky.

MDLURLTexture

A lightweight reference to a URL from which to load texture data.

MDLTextureFilter

A description of filtering modes for a renderer to use when sampling from a texture.

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