Sign in to follow this  

[SlimDX] Setting vertex shader constants

Recommended Posts

Hi, I'm trying to set vertex shader constants in SlimDX, but doing so gives me "D3DERR_INVALIDCALL: Invalid call (-2005530516)". Here is my code:
Renderer.Device.VertexShader = shader.VertexShader;
Renderer.Device.PixelShader = shader.PixelShader;

shader.VertexShader.Function.ConstantTable.SetValue(Renderer.Device, new SlimDX.Direct3D9.EffectHandle("worldViewProj"), worldViewProjection);

Is there something else that I have to do?

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