Overte C++ Documentation
GPUKTXPayload Struct Reference

Payload for a KTX (texture) More...

Public Member Functions

void serialize (DataSerializer &ser)
 Serialize the KTX payload. More...
 
bool unserialize (DataDeserializer &dsr)
 Deserialize the KTX payload. More...
 

Detailed Description

Payload for a KTX (texture)

This contains a ready to use texture. This is both used for the local cache, and for baked textures.

Note
The usage for textures means breaking compatibility is a bad idea, and that the implementation should just keep on adding extra data at the bottom of the structure, and remain able to read old formats. In fact, version 1 KTX can be found in older baked assets.

Member Function Documentation

◆ serialize()

void GPUKTXPayload::serialize ( DataSerializer ser)
inline

Serialize the KTX payload.

Warning
Be careful modifying this code, as it influences baked assets. Backwards compatibility must be maintained.
Parameters
serDestination serializer

◆ unserialize()

bool GPUKTXPayload::unserialize ( DataDeserializer dsr)
inline

Deserialize the KTX payload.

Warning
Be careful modifying this code, as it influences baked assets. Backwards compatibility must be maintained.
Parameters
dsrDeserializer object
Returns
true Successful
false Version check failed

The documentation for this struct was generated from the following file: