Rename bx::swap to bx::xchg.

This commit is contained in:
Branimir Karadžić 2015-01-20 00:04:30 -08:00
parent 76b317256e
commit 6cb953af14
2 changed files with 6 additions and 6 deletions

View file

@ -246,8 +246,8 @@ int _main_(int /*_argc*/, char** /*_argv*/)
bgfx::setUniform(u_params, &u_paramsData, 3);
bgfx::dispatch(0, updateInstancesProgram, u_paramsData.dispatchSize, 1, 1);
bx::swap(currPositionBuffer0, currPositionBuffer1);
bx::swap(prevPositionBuffer0, prevPositionBuffer1);
bx::xchg(currPositionBuffer0, currPositionBuffer1);
bx::xchg(prevPositionBuffer0, prevPositionBuffer1);
float view[16];

View file

@ -1852,10 +1852,10 @@ namespace bgfx
texture.D3D11.pSRView = m_ovrRT.m_srv;
m_ovr.postReset(texture.Texture);
bx::swap(m_ovrRtv, m_backBufferColor);
bx::xchg(m_ovrRtv, m_backBufferColor);
BX_CHECK(NULL == m_backBufferDepthStencil, "");
bx::swap(m_ovrDsv, m_backBufferDepthStencil);
bx::xchg(m_ovrDsv, m_backBufferDepthStencil);
}
}
#endif // BGFX_CONFIG_USE_OVR
@ -1867,8 +1867,8 @@ namespace bgfx
m_ovr.preReset();
if (NULL != m_ovrRtv)
{
bx::swap(m_ovrRtv, m_backBufferColor);
bx::swap(m_ovrDsv, m_backBufferDepthStencil);
bx::xchg(m_ovrRtv, m_backBufferColor);
bx::xchg(m_ovrDsv, m_backBufferDepthStencil);
BX_CHECK(NULL == m_backBufferDepthStencil, "");
DX_RELEASE(m_ovrRtv, 0);