Archived

This topic is now archived and is closed to further replies.

D3DXCreateEffectFromResource

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

Hi. Has anyone here successfully used the D3DXCreateEffectFromResource function? I cant seem to get it to work! I have no trouble loading meshes or textures from resources, and my effect files load fine from files. Is there some kind of trick to getting this to work, such as importing the files in a certain way? thanks, Chris

Share this post


Link to post
Share on other sites
D3DXERR_INVALIDDATA, which is why I thought maybe I''m importing it wrong? Using D3DXCreateEffectFromFile on the original file works fine.

Does the resource type have to have a certain name for example? I''ve tried a few variations ("FX", "Effects", etc).

Share this post


Link to post
Share on other sites