nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
texture_cubemap_tests.h
1#ifndef NXDK_PGRAPH_TESTS_TEXTURE_CUBEMAP_TESTS_H
2#define NXDK_PGRAPH_TESTS_TEXTURE_CUBEMAP_TESTS_H
3
4#include <string>
5
6#include "test_suite.h"
7#include "texture_format.h"
8#include "xbox_math_vector.h"
9
10class TestHost;
11
12// Tests cubemap texture behavior.
14 public:
15 TextureCubemapTests(TestHost &host, std::string output_dir, const Config &config);
16
17 void Initialize() override;
18
19 private:
20 enum class ReflectTest {
21 kSpecular,
22 kDiffuse,
23 kSpecularConst,
24 };
25
26 private:
27 void TestCubemap(float q_coord);
28 void TestDotSTR3D(const std::string &name, uint32_t dot_rgb_mapping);
29 void TestDotSTRCubemap(const std::string &name, uint32_t dot_rgb_mapping);
30 void TestDotReflect(const std::string &name, uint32_t dot_rgb_mapping, ReflectTest mode);
31 void TestDotReflectSpec(const std::string &name, uint32_t dot_rgb_mapping, const vector_t &eye_vec, bool const_eye);
32};
33
34#endif // NXDK_PGRAPH_TESTS_TEXTURE_CUBEMAP_TESTS_H
Definition test_host.h:33
Definition test_suite.h:21
Definition texture_cubemap_tests.h:13
void Initialize() override
Called to initialize the test suite.
Definition texture_cubemap_tests.cpp:298
Runtime configuration for TestSuites.
Definition test_suite.h:24