Contents

TextureResource

A representation of a texture.

Declaration

@MainActor @preconcurrency class TextureResource

Overview

A texture resource holds pixel data accessible by the GPU, organized as an image, a cube of images, an array of images, or a 3D image (volume texture).

Assign texture resources to material parameters to provide color and fine surface-rendering details.

Topics

Creating a texture resource

Creating a 2D texture resource

Creating a cube texture resource

Creating a 2D array texture resource

Creating a 3D texture resource

Loading a texture

Describing the texture

Drawing the texture

Copying the texture

Modifying the texture

Deprecated

Classes

Structures

Initializers

Instance Methods

Type Aliases

Type Methods

Enumerations

Default Implementations

See Also

Texture resources