void CHLSL_Solver_ReadSemantics::OnVarInit( const WriteContext_FXC &context )
{
	const ResourceType_t &type = GetResourceType();
	const char *varname = GetResourceTypeName( type );
	CHLSL_Var *target = GetTargetVar( 0 );
	char tmp[MAXTARGC];
	Q_snprintf( tmp, MAXTARGC, "In.%s", varname );
	target->SetName( tmp, true );
}
void CHLSL_Solver_Callback::OnVarInit( const WriteContext_FXC &context )
{
	CHLSL_Var *target = GetTargetVar( 0 );
	char tmp[MAXTARGC];

	Q_snprintf( tmp, MAXTARGC, "g_cData_%s", szName );

	target->SetName( tmp, true );
}
void CHLSL_Solver_Array::OnVarInit_PostStep()
{
    CHLSL_Var *src_0 = GetSourceVar( 0 );
    CHLSL_Var *src_1 = (m_iSize_y > 1) ? GetSourceVar( 1 ) : NULL;

    CHLSL_Var *target = GetTargetVar( 0 );
    char tmp[MAXTARGC];
    Q_snprintf( tmp, sizeof( tmp ), "g_cArray_%i[%s]", GetData().iNodeIndex, src_0->GetName() );
    if ( src_1 != NULL )
    {
        char szAppend[MAX_PATH];
        Q_snprintf( szAppend, sizeof( szAppend ), "[%s]", src_1->GetName() );
        Q_strcat( tmp, szAppend, sizeof( tmp ) );
    }
    //Q_strcat( tmp, "", sizeof( tmp ) );
    target->SetName( tmp, true );
}
void CHLSL_Solver_Array::OnVarInit( const WriteContext_FXC &context )
{
    CHLSL_Var *target = GetTargetVar( 0 );
    target->SetName( "NOT_VALIDATED_YET", true );
}