Instance Property

rootResource

The resource that owns the storage for this texture.

Required.

Declaration

var rootResource: MTLResource? { get }

Discussion

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

See Also

Getting Information about Ancestor Resources

var parent: MTLTexture?

The parent texture that the texture was created from, if any.

Required.

var parentRelativeLevel: Int

The base level of the parent texture that the texture was created from, if any.

Required.

var parentRelativeSlice: Int

The base slice of the parent texture that the texture was created from, if any.

Required.

var buffer: MTLBuffer?

The source buffer that the texture was created from, if any.

Required.

var bufferOffset: Int

The offset in the source buffer where the texture's data comes from.

Required.

var bufferBytesPerRow: Int

The bytes per row of the of the data in the source buffer used to create this texture, if any.

Required.