SwapDeviceContextState和ID3D10Device [英] SwapDeviceContextState and ID3D10Device

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

问题描述

我正在尝试在D3D11.1开发者预览版中使用新的ID3DDeviceContextState功能在Direct3D 10和11接口之间切换。

I'm trying to use the new ID3DDeviceContextState functionality in the D3D11.1 Developer Preview to switch between Direct3D 10 and 11 interfaces.

我不确定我是否错过了什么,但是如何在使用SwapDeviceContextState激活D3DDeviceContextState后得到ID3D10Device接口?

I'm not sure if I missed something, but how do I get my hands on an ID3D10Device interface after activating a D3DDeviceContextState using SwapDeviceContextState?

我尝试使用ID3D11Device1和ID3D11DeviceContext1接口调用QueryInterface并使用IDGXISwapChain :: GetDevice:没有任何东西返回ID3D10Device。

I tried calling QueryInterface using the ID3D11Device1 and ID3D11DeviceContext1 interfaces and also using IDGXISwapChain::GetDevice: Nothing returns a ID3D10Device.

我知道D3D10 ContextState是活动的,因为ID3D11DeviceContext中的调用方法全部失败,因为它们被"锁定"。

I know the D3D10 ContextState is active, because calling methods from the ID3D11DeviceContext all fail because they are "locked out".

我做错了还是在开发者预览版中没有完全实现?

Am I doing it wrong or is this not completely implemented in the developer preview build?

推荐答案

你应该能够QI IDirect3D10Device。您初始化了什么功能级别?您可能需要QI ID3D10Device1,除非您使用的是功能级别10_0。

You should be able to QI the IDirect3D10Device. What Feature Level do you have initialized? You might need to QI ID3D10Device1 unless you are using Feature Level 10_0.


这篇关于SwapDeviceContextState和ID3D10Device的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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