Sign in to follow this  


Recommended Posts

I'm having problems with SetVertexShaderConstantf not always setting the correct values in my shader. I bind the shader, with SetVertexShader and then call SetVertexShaderConstantF with each value I'm trying to set. My Program definitely has those shader constants and I am definitely attempting to set the correct register number and type, but when I look in PIX or NVPerfHud my shader constant registers are completely wrong. Running with debug libraries and verifying whether SetVertexShaderConstantf succeeded or not hasn't made anything any clearer. In fact calling GetVertexShaderConstantf immediately after I set the constant shows that the values should of gone through to the shader, but still my shader doesn't get the values I need in there. What could possibly cause this behaviour? Thanks Col

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this