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

#include <attribute_float_tests.h>

Inheritance diagram for AttributeFloatTests:
Collaboration diagram for AttributeFloatTests:

Public Member Functions

 AttributeFloatTests (TestHost &host, std::string output_dir, const Config &config)
 
- 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 Initialize ()
 Called to initialize the test suite.
 
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 behavior of various float inputs to vertex shaders including NaN, INF, etc.

The test renders a number of quads. The leftmost quad passes through the raw value as diffuse.rgb and subsequent columns multiply each component by the value listed in the column header.

The values vary from the top to the bottom of the quad with the top and bottom values displayed above the "Multiplier" header.

Constructor & Destructor Documentation

◆ AttributeFloatTests()

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

Initializes the test suite and creates test cases.

Remarks
0_1 Ranges values from 0 to 1.
0_8 Ranges values from 0 to 8.
-1_1 Ranges values from -1 to 1.
-8_1 Ranges values from -8 to 1.
-INF_INF Ranges values from -infinity to infinity.
-Max_Max Ranges values from -Max (normal) to +Max (normal).
-MaxSN_MaxSN Ranges values from -Max (subnormal) to +Max (subnormal).
-Min_Min Ranges values from -Min (subnormal) to +Min (subnormal).
-MinN_MinN Ranges values from -Min (normal) to +Min (normal).
-NaNq_NaNq Ranges values from -NaN to +NaN (quiet).
-NaNs_NaNs Ranges values from -NaN to +NaN (signaling).

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