nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
texture_format_dxt_tests.h
1#ifndef NXDK_PGRAPH_TESTS_TEXTURE_FORMAT_DXT_TESTS_H
2#define NXDK_PGRAPH_TESTS_TEXTURE_FORMAT_DXT_TESTS_H
3
4#include <string>
5
6#include "test_host.h"
7#include "test_suite.h"
8
10
12 public:
13 enum class CompressedTextureFormat {
14 DXT1 = NV097_SET_TEXTURE_FORMAT_COLOR_L_DXT1_A1R5G5B5,
15 DXT3 = NV097_SET_TEXTURE_FORMAT_COLOR_L_DXT23_A8R8G8B8,
16 DXT5 = NV097_SET_TEXTURE_FORMAT_COLOR_L_DXT45_A8R8G8B8,
17 };
18
19 public:
20 TextureFormatDXTTests(TestHost &host, std::string output_dir, const Config &config);
21 void Initialize() override;
22
23 private:
24 void Test(const char *filename, CompressedTextureFormat texture_format);
25 void TestMipmap(const char *filename, CompressedTextureFormat texture_format);
26 static std::string MakeTestName(const std::string &filename, CompressedTextureFormat texture_format,
27 bool mipmap = false);
28};
29
30#endif // NXDK_PGRAPH_TESTS_TEXTURE_FORMAT_DXT_TESTS_H
Definition test_host.h:47
Definition test_suite.h:20
Definition texture_format_dxt_tests.h:11
void Initialize() override
Called to initialize the test suite.
Definition texture_format_dxt_tests.cpp:63
Runtime configuration for TestSuites.
Definition test_suite.h:23
Definition texture_format.h:8