TESTVOXELGPU: new empty test program

Martin Gerhardy 2018-05-30 16:10:44 +02:00
parent ed8990ffe5
commit ac527c8288
5 changed files with 57 additions and 1 deletions

View File

@ -164,7 +164,7 @@ doc: cmake
package: cmake
$(call COMPILE, package)
server client voxedit mapedit shadertool noisetool databasetool uitool tests tests-math tests-core tests-persistence tests-voxel benchmarks-voxel tests-noise tests-computeshadertool testmesh testcamera testdepthbuffer testturbobadger testnuklear testtexture testvoxelfont testplane testimgui testoctree testglslgeom testglslcomp testluaui testoctreevisit testshapebuilder tests-shadertool flatc computeshadertool: cmake
server client voxedit mapedit shadertool noisetool databasetool uitool tests tests-math tests-core tests-persistence tests-voxel benchmarks-voxel tests-noise tests-computeshadertool testmesh testcamera testdepthbuffer testturbobadger testnuklear testtexture testvoxelfont testplane testimgui testoctree testglslgeom testglslcomp testluaui testoctreevisit testvoxelgpu testshapebuilder tests-shadertool flatc computeshadertool: cmake
$(call COMPILE, $@)
$(call COMPILE, copy-data-shared)
$(call COMPILE, copy-data-$@)

View File

@ -13,4 +13,5 @@ add_subdirectory(testoctree)
add_subdirectory(testoctreevisit)
add_subdirectory(testshapebuilder)
add_subdirectory(testvoxelfont)
add_subdirectory(testvoxelgpu)
#add_subdirectory(testtemplate)

View File

@ -0,0 +1,7 @@
project(testvoxelgpu)
set(SRCS
TestVoxelGPU.h TestVoxelGPU.cpp
)
engine_add_executable(TARGET ${PROJECT_NAME} SRCS ${SRCS} WINDOWED NOINSTALL)
engine_target_link_libraries(TARGET ${PROJECT_NAME} DEPENDENCIES testcore)
#generate_shaders(${PROJECT_NAME} testvoxelgpu)

View File

@ -0,0 +1,29 @@
/**
* @file
*/
#include "TestVoxelGPU.h"
#include "io/Filesystem.h"
TestVoxelGPU::TestVoxelGPU(const metric::MetricPtr& metric, const io::FilesystemPtr& filesystem, const core::EventBusPtr& eventBus, const core::TimeProviderPtr& timeProvider) :
Super(metric, filesystem, eventBus, timeProvider) {
init(ORGANISATION, "testvoxelgpu");
}
core::AppState TestVoxelGPU::onInit() {
core::AppState state = Super::onInit();
if (state != core::AppState::Running) {
return state;
}
return state;
}
core::AppState TestVoxelGPU::onCleanup() {
core::AppState state = Super::onCleanup();
return state;
}
void TestVoxelGPU::doRender() {
}
TEST_APP(TestVoxelGPU)

View File

@ -0,0 +1,19 @@
/**
* @file
*/
#pragma once
#include "testcore/TestApp.h"
class TestVoxelGPU: public TestApp {
private:
using Super = TestApp;
void doRender() override;
public:
TestVoxelGPU(const metric::MetricPtr& metric, const io::FilesystemPtr& filesystem, const core::EventBusPtr& eventBus, const core::TimeProviderPtr& timeProvider);
virtual core::AppState onInit() override;
virtual core::AppState onCleanup() override;
};