TextureResource
A representation of a texture.
Declaration
@MainActor @preconcurrency class TextureResourceOverview
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
init(named:in:)init(named:in:options:)init(contentsOf:withName:options:)init(contentsOf:withName:)load(named:in:)load(named:in:options:)load(contentsOf:withName:options:)load(contentsOf:withName:)loadAsync(named:in:)loadAsync(named:in:options:)loadAsync(contentsOf:withName:)
Describing the texture
Drawing the texture
Copying the texture
Modifying the texture
Deprecated
generate(from:withName:options:)generateAsync(from:withName:options:)replaceAsync(withImage:options:)generate(from:named:options:)loadAsync(contentsOf:withName:options:)
Classes
Structures
Initializers
init(cubeFromEquirectangular:named:quality:faceSize:options:)init(cubeFromImage:named:options:)init(dimensions:format:contents:)init(from:)init(image:withName:options:)