D3DXCreateEffectFromResource

Started by
1 comment, last by treething 20 years, 11 months ago
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
Advertisement
What''s the error code returned?


Development Lead
Windows Graphics & Gaming Technology
Development Lead, DirectXWindows Graphics & Gaming Technology
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).

This topic is closed to new replies.

Advertisement