Advertisement Jump to content
Sign in to follow this  

Possible to get list of function parameters through ID3DXEffect?

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

Say I have a function in an effect that's defined like this:
void VS(
    float4 iPos        : POSITION,
    float3 iNormal     : NORMAL,
    out float4 oPos    : POSITION,
    out float3 oNormal : TEXCOORD0)
All I'm really interested in is the signature of the function; namely, the parameter list. Is it possible to iterate through the parameters that an effect function takes through ID3DXEffect?

Share this post

Link to post
Share on other sites
I think you are missing a mul() in your oNormal calculation:



Share this post

Link to post
Share on other sites
Thanks, that's exactly what I need, as I'm really looking for the input semantics. Perfect.

And I just quickly typed in a dummy shader, I guess I forgot the mul() :)

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. 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!