Jump to content
  • Advertisement
Sign in to follow this  

[.net] HLSL Parameter question

This topic is 5217 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

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