mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Rename bx::swap to bx::xchg.
This commit is contained in:
parent
76b317256e
commit
6cb953af14
2 changed files with 6 additions and 6 deletions
|
@ -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];
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue