20#include <boost/test/unit_test.hpp>
30 std::vector<uint32_t> freed;
71 BOOST_CHECK( ( retire( queue, 2 +
RHI_FRAMES_IN_FLIGHT ) == std::vector<uint32_t>{ 1, 3, 5 } ) );
73 std::vector<uint32_t> flushed;
81 BOOST_CHECK( ( flushed == std::vector<uint32_t>{ 2, 4 } ) );
82 BOOST_CHECK( retire( queue, 1000 ).
empty() );
Holds destroyed GPU resource handles until no in-flight command buffer can still reference them.
void Enqueue(RHI_DEFERRED_RESOURCE_TYPE aType, uint32_t aHandleValue, uint64_t aCurrentFrame)
bool HasRetired(uint64_t aCompletedFrame) const
void FlushAll(Func &&aFreeFunc)
void ProcessRetired(uint64_t aCompletedFrame, Func &&aFreeFunc)
static bool empty(const wxTextEntryBase *aCtrl)
constexpr uint64_t RHI_FRAMES_IN_FLIGHT
uint32_t handleValue
generation and index
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(HeldForFramesInFlight)