Jump to content
  • Advertisement
Sign in to follow this  
Drazgal

[.net] HLSL Parameter question

This topic is 5039 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!