nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
lighting_control_tests.h
1#ifndef NXDK_PGRAPH_TESTS_LIGHTING_CONTROL_TESTS_H
2#define NXDK_PGRAPH_TESTS_LIGHTING_CONTROL_TESTS_H
3
4#include <memory>
5#include <vector>
6
7#include "test_suite.h"
8
9class TestHost;
10namespace PBKitPlusPlus {
11class VertexBuffer;
12}
13
14using namespace PBKitPlusPlus;
15
59 public:
60 LightingControlTests(TestHost& host, std::string output_dir, const Config& config);
61
62 void Deinitialize() override;
63 void Initialize() override;
64
65 private:
67 void Test(const std::string& name, uint32_t light_control, bool specular_enabled, bool is_fixed_function);
68
69 void CreateGeometry();
70
71 private:
72 std::shared_ptr<VertexBuffer> vertex_buffer_cone_;
73 std::shared_ptr<VertexBuffer> vertex_buffer_cylinder_;
74 std::shared_ptr<VertexBuffer> vertex_buffer_sphere_;
75 std::shared_ptr<VertexBuffer> vertex_buffer_suzanne_;
76 std::shared_ptr<VertexBuffer> vertex_buffer_torus_;
77};
78
79#endif // NXDK_PGRAPH_TESTS_LIGHTING_CONTROL_TESTS_H
Definition lighting_control_tests.h:58
void Deinitialize() override
Called to tear down the test suite.
Definition lighting_control_tests.cpp:184
void Initialize() override
Called to initialize the test suite.
Definition lighting_control_tests.cpp:228
Definition test_host.h:33
Definition test_suite.h:20
Runtime configuration for TestSuites.
Definition test_suite.h:23