获取 Direct3d 渲染流的图像数据
我想获取来自 direct3d 应用程序的图像输出的原始图像数据,例如指向字节数组或类似的数据,而不实际将其渲染到监视器。
我需要这样做,以便我可以将 direct3d 渲染为 directshow 源过滤器
Visual studio 2008 c++
I would like to get at the raw image data, as in a pointed to a byte array or something like that, of the image output from a direct3d app without actually rendering it to the monitor.
I need to do this so that I can render direct3d as a directshow source filter
Visual studio 2008 c++
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
创建一个要渲染为
IDirect3DSurface9
。使用 < 将其设置为渲染目标代码>IDirect3DDevice9::SetRenderTarget。Create a surface to which you're going to render as an instance of
IDirect3DSurface9
. Set it as the target for your rendering withIDirect3DDevice9::SetRenderTarget
.您还可以锁定后台缓冲区。
You can also lock the back buffer.