在OpenGL上使用Mapped IDXGISurface

时间:2016-12-26 23:45:11

标签: opengl directx rendering

我可以使用OpenGL glMapBuffer渲染映射(cpu映射)的IDXGISurface吗?

IDXGISurface* currentSurface;
DXGI_MAPPED_RECT mapped_rect;
..
..(code that sending buffer to other process)
..
void *data = glMapBuffer( GL_ARRAY_BUFFER, ... );
memcpy( data, mapped_rect.pBits, size);

0 个答案:

没有答案