Partial spherical harmonics tests

This commit is contained in:
Dale Glass 2022-12-31 19:32:33 +01:00 committed by HifiExperiments
parent 127458aebc
commit 8e41908e49

View file

@ -16,7 +16,9 @@
#include <gpu/Texture.h>
#include <image/Image.h>
#include <image/TextureProcessing.h>
#include "SerDes.h"
#include "KTX.h"
#include "Texture_ktx.cpp"
QTEST_GUILESS_MAIN(KtxTests)
@ -31,6 +33,19 @@ QString getRootPath() {
return result;
}
#if 0
ktx::Byte* serializeSPH(ktx::Byte* data, const gpu::IrradianceKTXPayload &payload) const {
*(ktx::IrradianceKTXPayload::Version*)data = IrradianceKTXPayload::CURRENT_VERSION;
data += sizeof(ktx::IrradianceKTXPayload::Version);
memcpy(data, &payload._irradianceSH, sizeof(ktx::SphericalHarmonics));
data += sizeof(SphericalHarmonics);
return data + PADDING;
}
#endif
void KtxTests::initTestCase() {
}
@ -147,6 +162,14 @@ void KtxTests::testKtxSerialization() {
testTexture->setKtxBacking(TEST_IMAGE_KTX.fileName().toStdString());
}
void KtxTests::testKtxNewSerializationSphericalHarmonics() {
DataSerializer ser;
}
#if 0
static const QString TEST_FOLDER { "H:/ktx_cacheold" };