Jump to content
  • Advertisement
Sign in to follow this  
janoside

HLSL Effect Render States

This topic is 4789 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

I have a good understanding of HLSL and of the DX Effects framework, but I don't fully understand how the two interact. I have written several shaders (and have seen numerous examples online) that look something like this: technique T1 { pass P1 { CullMode = None; MultiSampleAntiAlias = false; AlphaBlendEnable = true; SrcBlend = SrcAlpha; DestBlend = InvSrcAlpha; VertexShader = compile vs_1_1 vs(); PixelShader = compile ps_1_1 ps(); } } Which sets several render-state values for the pass P1 (culling mode, whether anti aliasing is enabled, and alpha-blending states). So concerning this shader, I understand that the Effects framework interprets my render state values, but I cannot for the life of me find a reference anywhere online that says all of the possible render-state values that I have implicit access to in my shaders. If anyone knows of such a reference I would really appreciate it. Thanks in advance, janoside

Share this post


Link to post
Share on other sites
Advertisement
You have access to most if not all of them.

Look in the DirectX documentation...
It’s all under "Effect States"

DirectX Graphics -> Reference -> Effect Reference -> Effect Format -> Effect States

That’s where it is in the August doc anyway.

Share this post


Link to post
Share on other sites
Thanks scythen.

My problem was that I was using the managed documentation which seems to not have the same information (thanks MS). If you can't find it vidalsasson it is in the file "directx9_c.chm" in the "Documentation" folder of the SDK. Go to the "Search" tab and enter "effect state", it should be the second item.

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!