| 102 | } |
| 103 | |
| 104 | void FramePassTimer::beginPass( VkCommandBuffer commandBuffer )noexcept |
| 105 | { |
| 106 | std::swap( m_queries.front(), m_queries.back() ); |
| 107 | auto const & query = m_queries.front(); |
| 108 | m_context.vkCmdResetQueryPool( commandBuffer |
| 109 | , m_timerQueries |
| 110 | , query.offset |
| 111 | , 2u ); |
| 112 | m_context.vkCmdWriteTimestamp( commandBuffer |
| 113 | , VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT |
| 114 | , m_timerQueries |
| 115 | , query.offset + 0u ); |
| 116 | } |
| 117 | |
| 118 | void FramePassTimer::endPass( VkCommandBuffer commandBuffer )noexcept |
| 119 | { |
no outgoing calls
no test coverage detected