#include <attribute_carryover_tests.h>
Classes | |
struct | TestConfig |
Public Member Functions | |
AttributeCarryoverTests (TestHost &host, std::string output_dir, const Config &config) | |
void | Initialize () override |
Called to initialize the test suite. | |
void | Deinitialize () override |
Called to tear down the test suite. | |
![]() | |
TestSuite (TestHost &host, std::string output_dir, std::string suite_name, const Config &config) | |
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) |
void | RunAll () |
void | SetSavingAllowed (bool enable=true) |
Additional Inherited Members | |
![]() | |
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. | |
![]() | |
void | SetDefaultTextureFormat () const |
![]() | |
TestHost & | host_ |
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< FTPLogger > | ftp_logger_ |
Tests behavior when vertex attributes are not provided but are used by shaders.
For various types of geometry, a fully specified primitive is rendered, followed by an identical (but position-transformed) primitive where only the vertex positions are provided and all other attributes bleed over from the fully specified primitive.
Each test picks a separate vertex attribute (e.g., weight, normal, ...) and sets it to a test value. The shader code will convert the attribute under test into a color.
Attributes with three parameters (iNormal) will have their alpha forced to 1.f.
Attributes with one parameter (e.g., iWeight) will be repeated into the red and green channels with their blue and alpha forced to 1.f.
|
overridevirtual |
Called to tear down the test suite.
Reimplemented from TestSuite.
|
overridevirtual |
Called to initialize the test suite.
Reimplemented from TestSuite.