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

#include <point_size_tests.h>

Inheritance diagram for PointSizeTests:
Collaboration diagram for PointSizeTests:

Public Member Functions

 PointSizeTests (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 the behavior of NV097_SET_POINT_SIZE and NV097_SET_POINT_SMOOTH_ENABLE

See https://registry.khronos.org/OpenGL-Refpages/gl2.1/xhtml/glPointSize.xml

Each test renders a grid of points.

As points go from left to right: point size starts at 0 and increases by point_size_increment per point.

Constructor & Destructor Documentation

◆ PointSizeTests()

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

Initializes the test suite and creates test cases.

Remarks
PointSmoothOn_01_FF Renders points using the fixed function pipeline with point smoothing enabled. Point size starts at 0 and increases by 1 per point starting at the upper left point.
PointSmoothOff_01_FF Renders points using the fixed function pipeline with point smoothing disabled. Point size starts at 0 and increases by 1 per point starting at the upper left point.
PointSmoothOn_04_FF Renders points using the fixed function pipeline with point smoothing enabled. Point size starts at 0 and increases by 4 per point starting at the upper left point.
PointSmoothOff_04_FF Renders points using the fixed function pipeline with point smoothing disabled. Point size starts at 0 and increases by 4 per point starting at the upper left point.
PointSmoothOn_08_FF Renders points using the fixed function pipeline with point smoothing enabled. Point size starts at 0 and increases by 8 per point starting at the upper left point.
PointSmoothOff_08_FF Renders points using the fixed function pipeline with point smoothing disabled. Point size starts at 0 and increases by 8 per point starting at the upper left point.
PointSmoothOn_16_FF Renders points using the fixed function pipeline with point smoothing enabled. Point size starts at 0 and increases by 16 per point starting at the upper left point.
PointSmoothOff_16_FF Renders points using the fixed function pipeline with point smoothing disabled. Point size starts at 0 and increases by 16 per point starting at the upper left point.
PointSmoothOn_01_VS Renders points using a programmable shader with point smoothing enabled. Point size starts at 0 and increases by 1 per point starting at the upper left point.
PointSmoothOff_01_VS Renders points using a programmable shader with point smoothing disabled. Point size starts at 0 and increases by 1 per point starting at the upper left point.
PointSmoothOn_04_VS Renders points using a programmable shader with point smoothing enabled. Point size starts at 0 and increases by 1 per point starting at the upper left point.
PointSmoothOff_04_VS Renders points using a programmable shader with point smoothing disabled. Point size starts at 0 and increases by 1 per point starting at the upper left point.
PointSmoothOn_08_VS Renders points using a programmable shader with point smoothing enabled. Point size starts at 0 and increases by 8 per point starting at the upper left point.
PointSmoothOff_08_VS Renders points using a programmable shader with point smoothing disabled. Point size starts at 0 and increases by 8 per point starting at the upper left point.
PointSmoothOn_16_VS Renders points using a programmable shader with point smoothing enabled. Point size starts at 0 and increases by 16 per point starting at the upper left point.
PointSmoothOff_16_VS Renders points using a programmable shader with point smoothing disabled. Point size starts at 0 and increases by 16 per point starting at the upper left point.

Member Function Documentation

◆ Initialize()

void PointSizeTests::Initialize ( )
overridevirtual

Called to initialize the test suite.

Reimplemented from TestSuite.


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