Tests sampling of NV2A texture formats, verifying color conversion, swizzling, and alpha channel handling. More...
#include <texture_format_tests.h>


Public Member Functions | |
| TextureFormatTests (TestHost &host, std::string output_dir, const Config &config) | |
| Constructs the TextureFormatTests test suite and creates test cases. | |
| void | Initialize () override |
| Called to initialize the test suite. | |
| void | Deinitialize () override |
| Called to tear down the test suite. | |
Public Member Functions inherited from TestSuite | |
| TestSuite (TestHost &host, std::string output_dir, std::string suite_name, const Config &config, bool interactive_only=false) | |
| const std::string & | Name () const |
| virtual void | SetupTest () |
| Called before running an individual test within this suite. | |
| virtual void | TearDownTest () |
| Called after running an individual test within this suite. | |
| void | DisableTests (const std::set< std::string > &tests_to_skip) |
| std::vector< std::string > | TestNames () const |
| bool | HasEnabledTests () const |
| void | Run (const std::string &test_name, uint32_t test_index=0, uint32_t total_tests=0) |
| void | RunAll (bool include_interactive) |
| bool | IsInteractiveOnly () const |
| void | SetSavingAllowed (bool enable=true) |
Additional Inherited Members | |
Static Public Member Functions inherited from TestSuite | |
| static void | TagNV2ATrace (uint32_t num_nops) |
| Inserts a pattern of NV097_NO_OPERATION's into the pushbuffer to allow identification when viewing nv2a traces. | |
Protected Member Functions inherited from TestSuite | |
| void | SetDefaultTextureFormat () const |
| void | FinishDraw (const std::string &name, bool save_zbuffer=false) |
| void | FinishDrawNoSave (const std::string &name, bool save_zbuffer=false) |
Protected Attributes inherited from TestSuite | |
| TestHost & | host_ |
| std::string | output_dir_ |
| std::string | suite_name_ |
| bool | interactive_only_ |
| bool | allow_saving_ {true} |
| std::map< std::string, std::function< void()> > | tests_ {} |
| std::set< std::string > | interactive_only_tests_ {} |
| PGRAPHDiffToken | pgraph_diff_ |
| bool | enable_progress_log_ |
| bool | enable_pgraph_region_diff_ |
| uint32_t | delay_milliseconds_between_tests_ |
| std::shared_ptr< FTPLogger > | ftp_logger_ |
Tests sampling of NV2A texture formats, verifying color conversion, swizzling, and alpha channel handling.
Exercises rendering a textured quad using various NV2A hardware texture formats. A color gradient is generated and converted to the target format (applying swizzling if swizzled), then sampled via the projective 2D shader stage with the final combiner set to output the sampled texture color. Also tests 8-bit palettized textures across various palette sizes and verifies alpha channel behavior for formats containing dummy "X" alpha components.
| TextureFormatTests::TextureFormatTests | ( | TestHost & | host, |
| std::string | output_dir, | ||
| const Config & | config | ||
| ) |
Constructs the TextureFormatTests test suite and creates test cases.
|
overridevirtual |
Called to tear down the test suite.
Reimplemented from TestSuite.
|
overridevirtual |
Called to initialize the test suite.
Reimplemented from TestSuite.