nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
texture_shadow_comparator_tests.h
1#ifndef NXDK_PGRAPH_TESTS_TEXTURE_SHADOW_COMPARATOR_TESTS_H
2#define NXDK_PGRAPH_TESTS_TEXTURE_SHADOW_COMPARATOR_TESTS_H
3
4#include <functional>
5#include <memory>
6#include <string>
7
8#include "test_host.h"
9#include "test_suite.h"
10
14class VertexBuffer;
15
17 public:
18 TextureShadowComparatorTests(TestHost &host, std::string output_dir, const Config &config);
19
20 void Initialize() override;
21 void Deinitialize() override;
22
23 private:
24 void TestRawValues(uint32_t depth_format, uint32_t texture_format, TestHost::ShaderStageProgram mode,
25 uint32_t shadow_comp_function, uint32_t min_val, uint32_t max_val, uint32_t ref,
26 const std::string &name);
27 void TestFixedFunction(uint32_t depth_format, bool float_depth, uint32_t texture_format,
28 TestHost::ShaderStageProgram mode, uint32_t shadow_comp_function, float min_val, float max_val,
29 float ref_val, const std::string &name);
30 void TestProgrammable(uint32_t depth_format, bool float_depth, uint32_t texture_format,
31 TestHost::ShaderStageProgram mode, uint32_t shadow_comp_function, float min_val, float max_val,
32 float ref_val, const std::string &name);
33
34 void TestProjected(uint32_t depth_format, uint32_t texture_format, TestHost::ShaderStageProgram mode,
35 uint32_t shadow_comp_function, float min_val, float max_val, float ref_val,
36 std::function<void(vector_t &, const vector_t &)> project_point,
37 std::function<void(vector_t &, const vector_t &, float)> unproject_point, const std::string &name);
38
39 private:
40 struct s_CtxDma texture_target_ctx_{};
41 std::shared_ptr<PrecalculatedVertexShader> raw_value_shader_;
42};
43
44#endif // NXDK_PGRAPH_TESTS_TEXTURE_SHADOW_COMPARATOR_TESTS_H
Definition perspective_vertex_shader.h:9
Definition precalculated_vertex_shader.h:15
Definition test_host.h:47
ShaderStageProgram
Texture unit modes.
Definition test_host.h:202
Definition test_suite.h:20
Definition texture_shadow_comparator_tests.h:16
void Initialize() override
Called to initialize the test suite.
Definition texture_shadow_comparator_tests.cpp:244
void Deinitialize() override
Called to tear down the test suite.
Definition texture_shadow_comparator_tests.cpp:260
Definition vertex_buffer.h:204
Runtime configuration for TestSuites.
Definition test_suite.h:23
Definition texture_format.h:8