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;
11class VertexBuffer;
12
13// Tests behavior when lighting is enabled but a normal is not provided in the vertex data.
14// The observed behavior on hardware is that the last set normal is reused for the unspecified vertices.
15class ShadeModelTests : public TestSuite {
16 public:
17 ShadeModelTests(TestHost& host, std::string output_dir, const Config& config);
18
19 void Initialize() override;
20
21 private:
22 void TestShadeModelFixed(uint32_t model, uint32_t provoking_vertex, TestHost::DrawPrimitive primitive, bool texture);
23 void TestShadeModel(uint32_t model, uint32_t provoking_vertex, TestHost::DrawPrimitive primitive, bool texture);
24
25 void TestShadeModelFixed_W(uint32_t model, uint32_t provoking_vertex, TestHost::DrawPrimitive primitive, bool texture,
26 float w, float w_inc);
27};
28
29#endif // NXDK_PGRAPH_TESTS_SHADE_MODEL_TESTS_H
Definition shade_model_tests.h:15
void Initialize() override
Called to initialize the test suite.
Definition shade_model_tests.cpp:111
Definition test_host.h:47
DrawPrimitive
Enumerates the rendering primitives supported by the NV2A.
Definition test_host.h:71
Definition test_suite.h:20
Definition vertex_buffer.h:204
Runtime configuration for TestSuites.
Definition test_suite.h:23