Sign in to follow this  

[.net] HLSL Parameter question

Recommended Posts

Im trying to pass in a structure via an effect file, I assumed I could just pass in an array the size of the structure in the shader but that didnt work. Ive tried making an equivilant sized structure in my program and pass that to the shade but I am not sure how to do that. public void SetValue(Device, EffectHandle, void, int); seems my best bet but I cannot for the life of my manage to cast my structure to void. I know I should be able to find out how to do this easily enough but the C# book Im working from isnt that helpful, and my google searchs have found info on it, but nothing that I seem to be able to get to work. Any help greatly apreciated.

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