Jump to content

  • Log In with Google      Sign In   
  • Create Account

About ID3DXEffect


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 belfegor   Crossbones+   -  Reputation: 2612

Like
0Likes
Like

Posted 15 May 2012 - 08:23 AM

1. Is ID3DXEffect creates render state block for those declared in "pass scope"?
technique tech
{
	pass p0
	{
		ALPHABLENDENABLE = TRUE;
		...
		...
	}
}

2. Does it do that at creation time (D3DXCreateEffectFromFile)?

3. Does it stores state block for each pass?

4. I guess it restores "old state" after EndPass() method?

5. What about sampler states?
texture decal_tex;
sampler decal_samp = sampler_state
{
	Texture	 = <decal_tex>;
	MIPFILTER   = LINEAR;
	MAGFILTER   = LINEAR;
	MINFILTER   = LINEAR;
	ADDRESSU	= BORDER;
	ADDRESSV	= BORDER;
	BORDERCOLOR = 0xFFFFFFFF;
};

Does it do the same thing?

Thanks for your time.

Edited by belfegor, 15 May 2012 - 08:26 AM.


Sponsor:

#2 mhagain   Crossbones+   -  Reputation: 7969

Like
1Likes
Like

Posted 15 May 2012 - 08:48 AM

The documentation answers your qurestions: there are D3DXFX_DONOTSAVESTATE, D3DXFX_DONOTSAVESAMPLERSTATE and D3DXFX_DONOTSAVESHADERSTATE flags available for D3DXCreateEffect, so you may assume that by default an effect will save and restore states via state blocks and that it also includes sampler states.

It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS