Jump to content
  • Advertisement
Sign in to follow this  

SetVertexShaderConstantB (or I)

This topic is 2139 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've been rewriting my engine so that it doesn't use D3DX and I've gotten almost everything done ... except I can't get SetVertexShaderConstantB/I to work. SetVertexShaderConstantF works just fine (and I'm considering just using that, but I'm bullheaded).


So, in my vertex shader I'll have something like:

bool bIsSelected : register(c4);

And in my rendering path, after I have called SetVertexShader, I will do something like:

         uint u = 1;
         hr = gp_DXInterface->SetVertexShaderConstantB(4, (const BOOL*)&u, 1);

Yet, bIsSelected will always be false.  I don't see any errors or warnings.  Has anyone else got these functions to work?


EDIT:  For what it's worth, calling SetVertexShaderConstantF works to set bIsSelected.

Edited by neeker

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!