Instance Property

rootResource

The resource that owns the storage for this texture.

Required.

Declaration

@property(readonly) id<MTLResource> rootResource;

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

parentTexture

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

Required.

parentRelativeLevel

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

Required.

parentRelativeSlice

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

Required.

buffer

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

Required.

bufferOffset

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

Required.

bufferBytesPerRow

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

Required.