Instance Method

texelDataWithBottomLeftOrigin()

Returns the texture’s image data, organized such that its first pixel represents the bottom-left corner of the image.

Declaration

func texelDataWithBottomLeftOrigin() -> Data?

Return Value

The texture’s image data, or nil if data is not available.

Discussion

If the texture was initialized with image data in top-left-origin format, the first call to this method creates and caches image data in bottom-left-origin format.

This method returns nil if the texture was not initialized with image data and is not a MDLTexture subclass capable of loading or generating its own data.

See Also

Accessing Texture Data

func texelDataWithTopLeftOrigin() -> Data?

Returns the texture’s image data, organized such that its first pixel represents the top-left corner of the image.

func texelDataWithTopLeftOrigin(atMipLevel: Int, create: Bool) -> Data?

Returns the texture’s image data for the specified mipmap level, organized such that its first pixel represents the top-left corner of the image.

func texelDataWithBottomLeftOrigin(atMipLevel: Int, create: Bool) -> Data?

Returns the texture’s image data for the specified mipmap level, organized such that its first pixel represents the bottom-left corner of the image.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software