来自D3DX11CreateEffectFromMemory的E_NOINTERFACE结果 [英] E_NOINTERFACE result from D3DX11CreateEffectFromMemory

查看:687
本文介绍了来自D3DX11CreateEffectFromMemory的E_NOINTERFACE结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用Dx11。 D3DX11CreateEffectFromMemory正在返回E_NOINTERFACE。



我知道E_NOINTERFACE在COM方面的含义,但我不知道如何解决这个问题。着色器编译器声称已成功编译着色器代码。



我将.fxo(编译的着色器)文件加载到缓冲区中。通过代码,调试器在指示的行上出现0x8004002错误:





对不起,调试器指示的行是截图中的第20行。



感谢任何见解

解决方案

我遇到了同样的错误,你使用的是Windows 7,我猜这个函数不被支持,一些接口只适用于Windows 8,但MSDN没有详细描述。请从DirectX / XNA论坛查看此问题。 p>

I'm just getting started with Dx11. D3DX11CreateEffectFromMemory is returning E_NOINTERFACE.

I know what E_NOINTERFACE means in terms of COM, but I don't know how to resolve this. The shader compiler claims to have successfully compiled the shader code.

I'm loading the .fxo (complied shader) file into a buffer. Stepping through the code, the debugger fails on the indicated line with the 0x8004002 error:

Sorry, the line indicated by the debugger is line 20 in the screenshot.

thanks for any insights

解决方案

I met the same error before, but with a different function, If you are using Windows 7, I guess this function was not supported, some interfaces only works on Windows 8, but MSDN does not describe it in details. take a look of this question from the DirectX/XNA forum.

这篇关于来自D3DX11CreateEffectFromMemory的E_NOINTERFACE结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆