Jump to content

  • Log In with Google      Sign In   
  • Create Account

nickgastovski

Member Since 02 Feb 2011
Offline Last Active Aug 21 2013 03:25 AM

Topics I've Started

[Error witj Inheritance]No matching signatures to

11 August 2013 - 01:47 AM

I got Eror(]No matching signatures to ... )with this code.

why it's not working?

class IInt{
...
virtual void regFunctions(asIScriptEngine*_engine)=0;
...
};

class Core:public Iint{
...
virtual void regFunctions(asIScriptEngine*_engine){
        Warning("regFunctions");
        int r;

        //
        //!Logging
        //
        r = _engine->RegisterGlobalFunction("void LogPrintf(const string val)", asFUNCTION(ScriptLogPrintf), asCALL_CDECL); assert( r >= 0 );
        r = _engine->RegisterGlobalFunction("void Warning(const string val)", asFUNCTION(ScriptWarning), asCALL_CDECL); assert( r >= 0 );
        r = _engine->RegisterGlobalFunction("void Debug(const string val)", asFUNCTION(ScriptDebug), asCALL_CDECL); assert( r >= 0 );
        r = _engine->RegisterGlobalFunction("void Error(const string val, bool val)", asFUNCTION(ScriptError), asCALL_CDECL); assert( r >= 0 );
       };
};

class Engine:public Core{
...
virtual void regFunctions(asIScriptEngine*_engine){Core::regFunctions(this->mASEngine)}
}
};

Porting shaders on d3d sdk2010

18 April 2011 - 12:47 PM

Hi,guys
I'm a novice in shader programming,and i have some problems with porting shader on sdk 2010 from 2007

fragment:
float4x4	textureProjection = 
{1,0,0,0,
0,-1,0,0,
0,0,0,0,
0.5f,-0.5f,0,1};

float4 GetSpotProjection(in float4 Pos, in float3 LDir)
{
	float tileVal = tProjectionTile/2.f;
	textureProjection[0][0] = tileVal;
	textureProjection[1][1] = tileVal;
	float4x4 mat2 = mul(LightProjection,textureProjection);
	return mul(LDir,mat2);
}
I get error x3025-"global variables are implicitly constant"
on fragment textureProjection[0][0] = tileVal;

I not want use "compatible mode"(i want use new SM models),but i want fix this error,can you help me?-Thanks
In this is moment I try compile in SM3 and SM2

PARTNERS