• Advertisement
Sign in to follow this  

SetVertexShaderConstantF

This topic is 3649 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'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
Advertisement
Can we see the relevant code (How you set the constants and what your shader looks like)? Are you sure you're not overwriting the values somewhere else?

Share this post


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

  • Advertisement