22 lines
767 B
C++
22 lines
767 B
C++
#include "Present_Frame_Lease.h"
|
|
namespace renderive {
|
|
Present_Frame_Lease::Present_Frame_Lease() = default;
|
|
Present_Frame_Lease::Present_Frame_Lease(Present_Frame_Lease&&) noexcept = default;
|
|
Present_Frame_Lease& Present_Frame_Lease::operator=(Present_Frame_Lease&&) noexcept = default;
|
|
Present_Frame_Lease::~Present_Frame_Lease() = default;
|
|
Present_Frame_Lease::operator bool() const {
|
|
return lease_ && lease_->operator bool();
|
|
}
|
|
bool Present_Frame_Lease::new_frame() const {
|
|
return is_new_frame;
|
|
}
|
|
bool Present_Frame_Lease::request_was_pending() const {
|
|
return update_was_pending;
|
|
}
|
|
Image_View Present_Frame_Lease::image() const {
|
|
if (!lease_ || !lease_->frame)
|
|
return {};
|
|
return lease_->frame->image.view();
|
|
}
|
|
} // namespace renderive
|