aboutsummaryrefslogtreecommitdiff
path: root/src/engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine.h')
-rw-r--r--src/engine.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine.h b/src/engine.h
index ab4207d..33db6ec 100644
--- a/src/engine.h
+++ b/src/engine.h
@@ -150,6 +150,10 @@ class Engine {
/// commands have occurred e.g., DoClear, DoDrawArrays, DoDrawRect.
virtual Result GetFrameBufferInfo(ResourceInfo* info) = 0;
+ /// Copy the content of the framebuffer into |values|, each value is a pixel
+ /// in R8G8B8A8 format.
+ virtual Result GetFrameBuffer(std::vector<Value>* values) = 0;
+
/// Copy the contents of the resource bound to the given descriptor
/// and get the resource information e.g., size for buffer, width,
/// height, depth for image of descriptor given as |descriptor_set|