nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
pixel_shader_tests.h
1#ifndef NXDK_PGRAPH_TESTS_PIXEL_SHADER_TESTS_H
2#define NXDK_PGRAPH_TESTS_PIXEL_SHADER_TESTS_H
3
4#include "image_resource.h"
5#include "test_suite.h"
6
15 public:
16 PixelShaderTests(TestHost &host, std::string output_dir, const Config &config);
17
18 void Initialize() override;
19
20 private:
23 void TestPassthrough();
24
28 void TestClipPlane();
29
39 void TestBumpEnvMap(bool luminance = false);
40
41 // //! Tests PS_TEXTUREMODES_BRDF
42 // void TestBRDF();
43
45 void TestDotST();
46
48 void TestDotZW();
49
51 void TestDependentColorChannel(bool use_green_blue = false);
52
56 void DrawPlainImage(float x, float y, const ImageResource &image, float quad_size, bool border = true) const;
57 void DrawZBuffer(float left, float top, uint32_t src_x, uint32_t src_y, uint32_t quad_size) const;
58
59 private:
60 ImageResource water_bump_map_;
61 ImageResource bump_map_test_image_;
62};
63
64#endif // NXDK_PGRAPH_TESTS_PIXEL_SHADER_TESTS_H
Definition pixel_shader_tests.h:14
void Initialize() override
Called to initialize the test suite.
Definition pixel_shader_tests.cpp:77
Definition test_host.h:33
Definition test_suite.h:20
Definition image_resource.h:7
Runtime configuration for TestSuites.
Definition test_suite.h:23