SetVertexShader

Started by
1 comment, last by ETFBlade 18 years, 5 months ago
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.
Advertisement
Hi,


LPDIRECT3DDEVICE9 device;

device->SetVertexShader();

That's if you're trying to set a shader to a device. I have never used ID3DXEffect::SetVertexShader().

Hope that helps,

ace
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!

This topic is closed to new replies.

Advertisement