Particles/Compute.cpp
//-----------------------------------------------------------------------------
// signal frame is complete, move to next fence value
// FIXME: expects there to only be 2 buffers
//-----------------------------------------------------------------------------
signal frame is complete, move to next fence value
FIXME: expects there to only be 2 buffers
signal frame is complete move to next fence value FIXME : expects there to only be 2 buffers
void Compute::MoveToNextFrame()
{
    m_frameFenceValues[m_bufferIndex] = m_fenceValue;
    ThrowIfFailed(m_commandQueue->Signal(m_fence.Get(), m_fenceValue));
    m_fenceValue++;
    m_bufferIndex = 1 - m_bufferIndex;
}
void Compute :: MoveToNextFrame ( ) { m_frameFenceValues [ m_bufferIndex ] = m_fenceValue ; ThrowIfFailed ( m_commandQueue -> Signal ( m_fence . Get ( ) , m_fenceValue ) ) ; m_fenceValue ++ ; m_bufferIndex = 1 - m_bufferIndex ; }
signal frame is complete, move to next fence value
FIXME: expects there to only be 2 buffers
signal frame is complete move to next fence value FIXME : expects there to only be 2 buffers
// Assign the current fence value to the current frame. // Signal and increment the fence value. // Update the frame index.