nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
zero_stride_tests.h
1#ifndef NXDK_PGRAPH_TESTS_ZERO_STRIDE_TESTS_H
2#define NXDK_PGRAPH_TESTS_ZERO_STRIDE_TESTS_H
3
4#include <memory>
5#include <vector>
6
7#include "test_host.h"
8#include "test_suite.h"
9#include "vertex_buffer.h"
10
11class TestHost;
12class VertexBuffer;
13
14// Tests behavior when vertex attributes have a 0 stride.
15class ZeroStrideTests : public TestSuite {
16 public:
17 enum DrawMode {
18 DRAW_ARRAYS,
19 DRAW_INLINE_ARRAYS,
20 DRAW_INLINE_ELEMENTS,
21 };
22
23 public:
24 ZeroStrideTests(TestHost& host, std::string output_dir, const Config& config);
25 void Initialize() override;
26
27 private:
28 void CreateGeometry();
29 void Test(DrawMode draw_mode);
30 static std::string MakeTestName(DrawMode draw_mode);
31
32 private:
33 std::vector<uint32_t> index_buffer_;
34};
35
36#endif // NXDK_PGRAPH_TESTS_ZERO_STRIDE_TESTS_H
Definition test_host.h:47
Definition test_suite.h:20
Definition vertex_buffer.h:204
Definition zero_stride_tests.h:15
void Initialize() override
Called to initialize the test suite.
Definition zero_stride_tests.cpp:32
Runtime configuration for TestSuites.
Definition test_suite.h:23