Skip to main content
GameDev.net gamedev.net
🔒 Locked

D3DXCreateEffectFromResource()

Started by Thergothon Aug 4, 2006 at 6:14 PM 0 replies 1.5k views
Original Post
Thergothon
Thergothon
How do I get this function working? It is returning D3DERR_INVALIDDATA. I imported my .fx file as a custom resource, and I'm calling the function like this:

HRESULT hr = D3DXCreateEffectFromResource(d3dDevice, NULL,
		MAKEINTRESOURCE(IDR_FX1), 0, 0, 0, 0, &g_shader, 0);

I imagine the problem lies with the second parameter, but since I don't actually know what it refers to (and the sdk is delightfully unhelpful in helping me to find out), I don't really know. Any help would be great. Thanks.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.