nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
TwoDLineTests Class Reference

#include <two_d_line_tests.h>

Inheritance diagram for TwoDLineTests:
Collaboration diagram for TwoDLineTests:

Classes

struct  TestCase
 

Public Member Functions

 TwoDLineTests (TestHost &host, std::string output_dir, const Config &config)
 
void Initialize () override
 Called to initialize the test suite.
 
- Public Member Functions inherited from TestSuite
 TestSuite (TestHost &host, std::string output_dir, std::string suite_name, const Config &config)
 
const std::string & Name () const
 
virtual void Deinitialize ()
 Called to tear down the test suite.
 
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)
 
void RunAll ()
 
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
 
- Protected Attributes inherited from TestSuite
TestHosthost_
 
std::string output_dir_
 
std::string suite_name_
 
bool allow_saving_ {true}
 
std::map< std::string, std::function< void()> > tests_ {}
 
PGRAPHDiffToken pgraph_diff_
 
bool enable_progress_log_
 
bool enable_pgraph_region_diff_
 
uint32_t delay_milliseconds_between_tests_
 
std::shared_ptr< FTPLoggerftp_logger_
 

Detailed Description

Tests various NV04_SOLID_LINE_* 2D graphics acceleration functions by rendering lines into buffers of different color depths.

Constructor & Destructor Documentation

◆ TwoDLineTests()

TwoDLineTests::TwoDLineTests ( TestHost host,
std::string  output_dir,
const Config config 
)

Constructs the 2D Line test suite.

Remarks
2DLine-15-C000003E0-400_200-400_400 XRGB 555 color depth - green vertical line from 400, 200 - 400, 400.
2DLine-16-C000007E0-400_200-400_400 XRGB 565 color depth - green vertical line from 400, 200 - 400, 400.
2DLine-24-C00000000-400_200-400_400 XRGB 888 - black vertical line from 400, 200 - 400, 400
2DLine-24-C0000FF00-400_200-400_400 XRGB 888 - green vertical line from 400, 200 - 400, 400
2DLine-24-C0000FF00-444_222-444_444 XRGB 888 - green vertical line from 444, 222 - 444, 444
2DLine-24-C00FF0000-400_200-400_400 XRGB 888 - red vertical line from 400, 200 - 400, 400
2DLine-24-C00FFFFFF-0_0-639_479 XRGB 888 - white diagonal line from 0, 0, - 639, 479 (one pixel short of bottom right corner)
2DLine-24-C00FFFFFF-222_222-222_222 XRGB 888 - should display nothing, the line has no length
2DLine-24-C00FFFFFF-400_0-400_479 XRGB 888 - white vertical line from 400, 0 - 400, 479 (one pixel short of bottom)
2DLine-24-C00FFFFFF-400_300-400_301 XRGB 888 - white dot at 400, 300
2DLine-24-C00FFFFFF-400_300-401_300 XRGB 888 - white dot at 400, 300
2DLine-24-C00FFFFFF-639_479-0_0 XRGB 888 - white diagonal line from 639, 479 - 0, 0 (one pixel short of the upper left corner)
2DLine-24-CFFFFFFFF-100_100-100_400 XRGB 888 - white vertical line from 100, 100 - 100, 400 - alpha is ignored

Member Function Documentation

◆ Initialize()

void TwoDLineTests::Initialize ( )
overridevirtual

Called to initialize the test suite.

Reimplemented from TestSuite.


The documentation for this class was generated from the following files: