|
|
DX_CHECK(m_deviceCtx->Map(m_captureTexture, 0, D3D11_MAP_READ, 0, &mapped) );
|
|
DX_CHECK(m_deviceCtx->Map(m_captureTexture, 0, D3D11_MAP_READ, 0, &mapped) );
|
|
|
g_callback->captureFrame(mapped.pData, getBufferHeight()*mapped.RowPitch);
|
|
g_callback->captureFrame(mapped.pData, getBufferHeight()*mapped.RowPitch);
|
|
|
m_deviceCtx->Unmap(m_captureTexture, 0);
|
|
m_deviceCtx->Unmap(m_captureTexture, 0);
|