Files
Totterynine 2773eae4d7 shaderapidx11
use -dxlevel 110 to use it
2021-09-22 18:56:56 +05:00

86 lines
1.7 KiB
C++

#include "shaderlib/cshader.h"
class unlitgeneric_vs40_Static_Index
{
private:
int m_nVERTEXCOLOR;
#ifdef _DEBUG
bool m_bVERTEXCOLOR;
#endif
public:
void SetVERTEXCOLOR( int i )
{
Assert( i >= 0 && i <= 1 );
m_nVERTEXCOLOR = i;
#ifdef _DEBUG
m_bVERTEXCOLOR = true;
#endif
}
void SetVERTEXCOLOR( bool i )
{
m_nVERTEXCOLOR = i ? 1 : 0;
#ifdef _DEBUG
m_bVERTEXCOLOR = true;
#endif
}
private:
int m_nMODEL;
#ifdef _DEBUG
bool m_bMODEL;
#endif
public:
void SetMODEL( int i )
{
Assert( i >= 0 && i <= 1 );
m_nMODEL = i;
#ifdef _DEBUG
m_bMODEL = true;
#endif
}
void SetMODEL( bool i )
{
m_nMODEL = i ? 1 : 0;
#ifdef _DEBUG
m_bMODEL = true;
#endif
}
public:
unlitgeneric_vs40_Static_Index( )
{
#ifdef _DEBUG
m_bVERTEXCOLOR = false;
#endif // _DEBUG
m_nVERTEXCOLOR = 0;
#ifdef _DEBUG
m_bMODEL = false;
#endif // _DEBUG
m_nMODEL = 0;
}
int GetIndex()
{
// Asserts to make sure that we aren't using any skipped combinations.
// Asserts to make sure that we are setting all of the combination vars.
#ifdef _DEBUG
bool bAllStaticVarsDefined = m_bVERTEXCOLOR && m_bMODEL;
Assert( bAllStaticVarsDefined );
#endif // _DEBUG
return ( 1 * m_nVERTEXCOLOR ) + ( 2 * m_nMODEL ) + 0;
}
};
#define shaderStaticTest_unlitgeneric_vs40 vsh_forgot_to_set_static_VERTEXCOLOR + vsh_forgot_to_set_static_MODEL + 0
class unlitgeneric_vs40_Dynamic_Index
{
public:
unlitgeneric_vs40_Dynamic_Index()
{
}
int GetIndex()
{
// Asserts to make sure that we aren't using any skipped combinations.
// Asserts to make sure that we are setting all of the combination vars.
#ifdef _DEBUG
#endif // _DEBUG
return 0;
}
};
#define shaderDynamicTest_unlitgeneric_vs40 0