nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
vertex_shader_rounding_tests.h
1#ifndef NXDK_PGRAPH_TESTS_VERTEX_SHADER_ROUNDING_TESTS_H
2#define NXDK_PGRAPH_TESTS_VERTEX_SHADER_ROUNDING_TESTS_H
3
4#include <memory>
5#include <string>
6
7#include "test_host.h"
8#include "test_suite.h"
9
10namespace PBKitPlusPlus {
11class VertexBuffer;
12}
13
14using namespace PBKitPlusPlus;
15
17 public:
18 VertexShaderRoundingTests(TestHost &host, std::string output_dir, const Config &config);
19
20 void Initialize() override;
21 void Deinitialize() override;
22
23 private:
24 void CreateGeometry();
25
26 void TestRenderTarget();
27 void TestGeometry(float bias);
28 void TestGeometrySubscreen(float bias);
29 void TestGeometrySuperscreen(float draw_width);
30 void TestCompositingRenderTarget(int z);
31 void TestAdjacentGeometry(float bias);
32 void TestProjectedAdjacentGeometry(float bias);
33
34 private:
35 uint8_t *render_target_{nullptr};
36
37 std::shared_ptr<VertexBuffer> framebuffer_vertex_buffer_;
38};
39
40#endif // NXDK_PGRAPH_TESTS_VERTEX_SHADER_ROUNDING_TESTS_H
Definition test_host.h:33
Definition test_suite.h:20
Definition vertex_shader_rounding_tests.h:16
void Initialize() override
Called to initialize the test suite.
Definition vertex_shader_rounding_tests.cpp:71
void Deinitialize() override
Called to tear down the test suite.
Definition vertex_shader_rounding_tests.cpp:81
Runtime configuration for TestSuites.
Definition test_suite.h:23