Sign in to follow this  
ETFBlade

SetVertexShader

Recommended Posts

Hey all, I'm currently beginning on integrating shaders into my game engine and encountered a problem. I'm trying to make a call to ID3DXEffect::SetVertexShader() using the LPD3DXEffect object I have. However, I get the error - error C2039: 'SetVertexShader' : is not a member of 'ID3DXEffect'. Everything I have seen in MSDN tells me otherwise. Any help with this would be greatly appreciated.

Share this post


Link to post
Share on other sites
Hrmm.

Maybe I'm confused then as to how to attach a vertex or pixel shader to a specific effect, rather than attaching it to the device itself. It seems that if you attach a shader to the D3D device itself, then you are limited to using that particular shader exclusively.

Thanks in advance!

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