blob: 75d897da196726b2da22dece490cb3d69ab7f152 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// This file is part of the 64k demo project.
// It tests the TextureManager (mocking the GPU parts where possible or running
// with valid device).
#include "gpu/texture_manager.h"
#include "platform.h"
#include "procedural/generator.h"
#include <cstdio>
int main() {
PlatformState state = platform_init(false, 100, 100);
if (!state.window) {
fprintf(stderr, "Failed to init platform\n");
return 1;
}
fprintf(stdout, "TextureManager Compilation Test Passed.\n");
/*
TextureManager tm;
// tm.init(device, queue); // execution would happen here
// tm.create_procedural_texture("noise", {256, 256, procedural::gen_noise,
{1234, 1.0f}});
*/
return 0;
}
|