nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
shade_model_tests.h
1#ifndef NXDK_PGRAPH_TESTS_SHADE_MODEL_TESTS_H
2#define NXDK_PGRAPH_TESTS_SHADE_MODEL_TESTS_H
3
4#include <memory>
5#include <vector>
6
7#include "test_host.h"
8#include "test_suite.h"
9
10class TestHost;
11
12// Tests behavior when lighting is enabled but a normal is not provided in the vertex data.
13// The observed behavior on hardware is that the last set normal is reused for the unspecified vertices.
14class ShadeModelTests : public TestSuite {
15 public:
16 ShadeModelTests(TestHost& host, std::string output_dir, const Config& config);
17
18 void Initialize() override;
19
20 private:
21 void TestShadeModelFixed(uint32_t model, uint32_t provoking_vertex, TestHost::DrawPrimitive primitive, bool texture);
22 void TestShadeModel(uint32_t model, uint32_t provoking_vertex, TestHost::DrawPrimitive primitive, bool texture);
23
24 void TestShadeModelFixed_W(uint32_t model, uint32_t provoking_vertex, TestHost::DrawPrimitive primitive, bool texture,
25 float w, float w_inc);
26};
27
28#endif // NXDK_PGRAPH_TESTS_SHADE_MODEL_TESTS_H
Definition shade_model_tests.h:14
void Initialize() override
Called to initialize the test suite.
Definition shade_model_tests.cpp:110
Definition test_host.h:33
Definition test_suite.h:20
Runtime configuration for TestSuites.
Definition test_suite.h:23