Sign in to follow this  
Jolichat

Experts, help! How can I get entrypoint functions names from the effect?

Recommended Posts

Guys, does anyone know how could I get entry points names from effect? I am writing a sample for shaders and effects profiling. If a user pass an HLSL effect to my sample I would like to provide him with as much as possible data about it. If it is possible to get information about effect entrypoins NAMES? I mean exactly NAMES, not a shader code, that is provided by ID3DBaseEfefct->GetPassDesc() function. Thanks a lot.

Share this post


Link to post
Share on other sites
MJP: Thanks a lot for the reply!
Yes, I tried the variant you are talking about, but the problem is that I this functionality works for ALL functions in effect, not only for entrypoints. And I don't know how to realize if a function is an entrypoint or just some internal one :(
It would be great if it possible to somehow link function name (or handle, or index) with the pass or technique or shader pointer. But I don't see the way to do it. :((

Share this post


Link to post
Share on other sites
Thanks again for the idea.

It would be great if GetPassDesc() provides function indices, but eh.... :( in reality GetPassDesc returns pointers to already compiled shaders code, not functions indices or handles :(

The problem seems to be unsolvable :((

Share this post


Link to post
Share on other sites
Thank you for your help again. It is a real headache for me during last week.

I wonder how do PIX and other shader debuggers implement their functionality? I suppose they have to get such information to execise step-by-step debugging of HLSL code.
DX10 provides a lot of debugging informations for shaders (D3D10GetShaderDebugInfo() function), but DX9 no :(

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