API reference
API reference
Select your platform
No SDKs available
No versions available

OVRKtxTexture Class

Helper class that loads KTX2 textures contained within GLTF (GL Transmission Format) models.
This requires that the GLTF model supports the KHR_texture_basisu extension. Check the KHR_texture_basisu extension page for more details.

Static Member Functions

Loads the given KTX2 texture data, as well as metadata, into a given OVRTextureData struct.
Parameters
data
Binary data that represents the KTX2 texture.
ktxData
Output data for the KTX2 texture.
Returns
True if the loading of the KTX2 texture was successful, otherwise false.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon