Contents

rootResource

The resource that owns the storage for this texture.

Declaration

var rootResource: (any MTLResource)? { get }

Discussion

If the value is nil, then this texture image owns its own data. Otherwise, this value is the MTLResource instance used to create the texture. For example, it might be a texture that uses the contents of an MTLBuffer object or a texture view that reinterprets the contents of another MTLTexture.

See Also

Getting information about ancestor resources