Jump to content
  • Advertisement
Sign in to follow this  
Stringer Bell

[d3d10] System Values

This topic is 4472 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello guys, I'm wondering if you have managed to use System Value IsFrontFace. I'm working with the 5308 CTP of Vista (latest dx sdk) and it just doesn't work, it returns allways false. (btw i don't use GS in my technique, so this pipeline stage is set to NULL) I'm using it this way but maybe i'm wrong :
PS_OUTPUT PS(PS_INPUT input, bool isFrontFace : SV_IsFrontFace)
{
	PS_OUTPUT ouput = (PS_OUTPUT)0;

	// Compute

	if(isFrontFace)
	{
		...
	}
	else
	{
		...
	}
	return output;
}
any help appreciated !

Share this post


Link to post
Share on other sites
Advertisement
You might well want to get yourself onto the DX Beta Program - microsoft.beta.d3d.misc newsgroup is currently the best place to ask D3D10 qustions [smile]

Have you checked the assembly output? Make sure there's the appropriate declaration:

dcl_input_sgv v0.x , primitive_id

I don't have an example for IsFrontFace, but it should be similar.

I say this because there is a bug where SV_PrimitiveID can't be used in the GS stage because of the compiler. Maybe theres something similar going on here?

hth,
Jack

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!