Refactoring the volume unit test code, trying to get some performance benchmarks. Unit tests are currently not passing.

This commit is contained in:
David Williams
2012-12-11 21:57:30 +00:00
parent dac0e5449f
commit d8da6a7b7f
4 changed files with 196 additions and 22 deletions

View File

@ -24,16 +24,32 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_TestVolume_H__
#define __PolyVox_TestVolume_H__
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
#include <QObject>
class TestVolume: public QObject
{
Q_OBJECT
public:
TestVolume();
~TestVolume();
private slots:
void testLargeVolume();
void testRawVolume();
void testSimpleVolume();
private slots:
void testRawVolumeDirectAccess();
void testRawVolumeSamplers();
void testSimpleVolumeDirectAccess();
void testSimpleVolumeSamplers();
void testLargeVolumeDirectAccess();
void testLargeVolumeSamplers();
private:
PolyVox::RawVolume<int32_t>* m_pRawVolume;
PolyVox::SimpleVolume<int32_t>* m_pSimpleVolume;
PolyVox::LargeVolume<int32_t>* m_pLargeVolume;
};
#endif