nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
lighting_normal_tests.h
1#ifndef NXDK_PGRAPH_TESTS_LIGHTING_NORMAL_TESTS_H
2#define NXDK_PGRAPH_TESTS_LIGHTING_NORMAL_TESTS_H
3
4#include <memory>
5#include <vector>
6
7#include "test_suite.h"
8
9class TestHost;
10class VertexBuffer;
11
18 public:
19 enum DrawMode {
20 DRAW_ARRAYS,
21 DRAW_INLINE_BUFFERS,
22 DRAW_INLINE_ARRAYS,
23 DRAW_INLINE_ELEMENTS,
24 };
25
26 public:
27 LightingNormalTests(TestHost& host, std::string output_dir, const Config& config);
28
29 void Initialize() override;
30 void Deinitialize() override;
31
32 private:
33 void CreateGeometry();
34 void Test(bool set_normal, const float* normal, DrawMode draw_mode);
35
36 static std::string MakeTestName(bool set_normal, const float* normal, DrawMode draw_mode);
37
38 private:
39 std::shared_ptr<VertexBuffer> normal_bleed_buffer_;
40 std::shared_ptr<VertexBuffer> lit_buffer_;
41
42 std::vector<uint32_t> lit_index_buffer_;
43};
44
45#endif // NXDK_PGRAPH_TESTS_LIGHTING_NORMAL_TESTS_H
Definition lighting_normal_tests.h:17
void Deinitialize() override
Called to tear down the test suite.
Definition lighting_normal_tests.cpp:88
void Initialize() override
Called to initialize the test suite.
Definition lighting_normal_tests.cpp:69
Definition test_host.h:48
Definition test_suite.h:20
Definition vertex_buffer.h:204
Runtime configuration for TestSuites.
Definition test_suite.h:23