nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
high_vertex_count_tests.h
1#ifndef NXDK_PGRAPH_TESTS_HIGH_VERTEX_COUNT_TESTS_H
2#define NXDK_PGRAPH_TESTS_HIGH_VERTEX_COUNT_TESTS_H
3
4#include <memory>
5#include <vector>
6
7#include "test_host.h"
8#include "test_suite.h"
9
10class VertexBuffer;
11
17 public:
18 enum DrawMode {
19 DRAW_ARRAYS,
20 DRAW_INLINE_BUFFERS,
21 DRAW_INLINE_ARRAYS,
22 DRAW_INLINE_ELEMENTS,
23 };
24
25 public:
26 HighVertexCountTests(TestHost &host, std::string output_dir, const Config &config);
27
28 void Initialize() override;
29 void Deinitialize() override;
30
31 private:
32 void Test(const std::string &name, DrawMode mode);
33
34 static std::string MakeTestName(DrawMode);
35
36 private:
37 std::shared_ptr<VertexBuffer> vertex_buffer_;
38 std::vector<uint32_t> index_buffer_;
39};
40
41#endif // NXDK_PGRAPH_TESTS_HIGH_VERTEX_COUNT_TESTS_H
Definition high_vertex_count_tests.h:16
void Initialize() override
Called to initialize the test suite.
Definition high_vertex_count_tests.cpp:147
void Deinitialize() override
Called to tear down the test suite.
Definition high_vertex_count_tests.cpp:157
Definition test_host.h:47
Definition test_suite.h:20
Definition vertex_buffer.h:204
Runtime configuration for TestSuites.
Definition test_suite.h:23