xemu_perf_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
vertex_buffer_allocation_tests.h
1#ifndef XEMU_PERF_TESTS_VERTEX_BUFFER_ALLOCATION_TESTS_H
2#define XEMU_PERF_TESTS_VERTEX_BUFFER_ALLOCATION_TESTS_H
3
4#include <memory>
5#include <vector>
6
7#include "test_host.h"
8#include "test_suite.h"
9
10namespace PBKitPlusPlus {
11class VertexBuffer;
12}
13
14using namespace PBKitPlusPlus;
15
20 public:
21 enum DrawMode {
22 DRAW_ARRAYS,
23 DRAW_INLINE_BUFFERS,
24 DRAW_INLINE_ARRAYS,
25 DRAW_INLINE_ELEMENTS,
26 };
27
28 public:
29 VertexBufferAllocationTests(TestHost &host, std::string output_dir, const Config &config);
30
31 void Initialize() override;
32 void Deinitialize() override;
33
34 private:
35 void TestTinyAllocations(const std::string &name, DrawMode mode);
36 void TestMixedSizes(const std::string &name, DrawMode mode);
37};
38
39#endif // XEMU_PERF_TESTS_VERTEX_BUFFER_ALLOCATION_TESTS_H
Definition test_host.h:12
Definition test_suite.h:16
Definition vertex_buffer_allocation_tests.h:19
void Initialize() override
Called to initialize the test suite.
Definition vertex_buffer_allocation_tests.cpp:182
void Deinitialize() override
Called to tear down the test suite.
Definition vertex_buffer_allocation_tests.cpp:187
Runtime configuration for TestSuites.
Definition test_suite.h:19