#include <Buffer.h>
Public Member Functions | |
| Update (const Buffer &buffer) | |
| Generates an update object based on current dirty pages in the buffer. More... | |
| Update (const Update &other) | |
| Copy constructor for the Update object. More... | |
| Update (Update &&other) | |
| Move constructor for the Update object. More... | |
| void | apply () const |
| Applies the update to the buffer. More... | |
Represents update to a buffer. The updates are generated in render thread after the batch has been generated. The updates are later applied before the frame is rendered. They are also applied when the frame object was generated but it's being skipped instead of being rendered.
| Buffer::Update::Update | ( | const Buffer & | buffer | ) |
Generates an update object based on current dirty pages in the buffer.
Called by Batch::finishFrame on the render thread when the frame is ready to be sent to the backend.
| buffer | Buffer to which this update will be applied to. |
| Buffer::Update::Update | ( | const Update & | other | ) |
| Buffer::Update::Update | ( | Update && | other | ) |
| void Buffer::Update::apply | ( | ) | const |
Applies the update to the buffer.
Called before the frame gets rendered or dropped. After the batches are generated changes to the buffer contents need to be applied. The reason for this is that a frame is executed at the same time as another frame object is being generated.