nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
depth_format_tests.h
1#ifndef NXDK_PGRAPH_TESTS_DEPTH_FORMAT_TESTS_H
2#define NXDK_PGRAPH_TESTS_DEPTH_FORMAT_TESTS_H
3
4#include <cstdint>
5#include <memory>
6#include <string>
7
8#include "test_suite.h"
9
10class TestHost;
11
13 public:
14 struct DepthFormat {
15 float fixed_to_float(uint32_t val) const;
16
17 uint32_t format;
18 uint32_t max_depth;
19 bool floating_point{false};
20 };
21
22 public:
23 DepthFormatTests(TestHost &host, std::string output_dir, const Config &config);
24
25 void Initialize() override;
26
27 private:
28 void CreateGeometry(const DepthFormat &format);
29 void Test(const DepthFormat &format, bool compress_z, uint32_t depth_cutoff);
30
31 void AddTestEntry(const DepthFormat &format, bool compress_z, uint32_t depth_cutoff);
32 static std::string MakeTestName(const DepthFormat &format, bool compress_z, uint32_t depth_cutoff);
33};
34
35#endif // NXDK_PGRAPH_TESTS_DEPTH_FORMAT_TESTS_H
Definition depth_format_tests.h:12
void Initialize() override
Called to initialize the test suite.
Definition depth_format_tests.cpp:40
Definition test_host.h:47
Definition test_suite.h:20
Definition depth_format_tests.h:14
Runtime configuration for TestSuites.
Definition test_suite.h:23