mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Add more warning notes
This commit is contained in:
parent
f96ca65812
commit
548a41171d
1 changed files with 18 additions and 0 deletions
|
@ -53,6 +53,14 @@ struct GPUKTXPayload {
|
|||
TextureUsageType _usageType;
|
||||
glm::ivec2 _originalSize { 0, 0 };
|
||||
|
||||
/**
|
||||
* @brief Serialize the KTX payload
|
||||
*
|
||||
* @warning Be careful modifying this code, as it influences baked assets.
|
||||
* Backwards compatibility must be maintained.
|
||||
*
|
||||
* @param ser Destination serializer
|
||||
*/
|
||||
void serialize(DataSerializer &ser) {
|
||||
|
||||
ser << CURRENT_VERSION;
|
||||
|
@ -72,6 +80,16 @@ struct GPUKTXPayload {
|
|||
assert(ser.length() == GPUKTXPayload::SIZE);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Deserialize the KTX payload
|
||||
*
|
||||
* @warning Be careful modifying this code, as it influences baked assets.
|
||||
* Backwards compatibility must be maintained.
|
||||
*
|
||||
* @param dsr Deserializer object
|
||||
* @return true Successful
|
||||
* @return false Version check failed
|
||||
*/
|
||||
bool unserialize(DataDeserializer &dsr) {
|
||||
Version version = 0;
|
||||
uint32_t usageData = 0;
|
||||
|
|
Loading…
Reference in a new issue