Commit f0dcaca2 by Cody Northrop Committed by Commit Bot

FrameCapture: Image Texture binding in MEC

Test: LEGO MEC Bug: b/161716126 Bug: angleproject:4048 Change-Id: If5890638dfc6a8cc07aece584a5742b055007db0 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2462164 Commit-Queue: Cody Northrop <cnorthrop@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarCourtney Goeltzenleuchter <courtneygo@google.com>
parent 1323e2fd
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "libANGLE/VertexArray.h" #include "libANGLE/VertexArray.h"
#include "libANGLE/capture_gles_2_0_autogen.h" #include "libANGLE/capture_gles_2_0_autogen.h"
#include "libANGLE/capture_gles_3_0_autogen.h" #include "libANGLE/capture_gles_3_0_autogen.h"
#include "libANGLE/capture_gles_3_1_autogen.h"
#include "libANGLE/frame_capture_utils.h" #include "libANGLE/frame_capture_utils.h"
#include "libANGLE/gl_enum_utils.h" #include "libANGLE/gl_enum_utils.h"
#include "libANGLE/queryconversions.h" #include "libANGLE/queryconversions.h"
...@@ -3095,6 +3096,23 @@ void CaptureMidExecutionSetup(const gl::Context *context, ...@@ -3095,6 +3096,23 @@ void CaptureMidExecutionSetup(const gl::Context *context,
cap(CaptureFenceSync(replayState, true, sync->getCondition(), sync->getFlags(), syncID)); cap(CaptureFenceSync(replayState, true, sync->getCondition(), sync->getFlags(), syncID));
} }
// Capture Image Texture bindings
const std::vector<gl::ImageUnit> &imageUnits = apiState.getImageUnits();
for (GLuint bindingIndex = 0; bindingIndex < static_cast<GLuint>(imageUnits.size());
++bindingIndex)
{
const gl::ImageUnit &imageUnit = imageUnits[bindingIndex];
if (imageUnit.texture == 0)
{
continue;
}
cap(CaptureBindImageTexture(replayState, true, bindingIndex, imageUnit.texture.id(),
imageUnit.level, imageUnit.layered, imageUnit.layer,
imageUnit.access, imageUnit.format));
}
// Capture GL Context states. // Capture GL Context states.
// TODO(http://anglebug.com/3662): Complete state capture. // TODO(http://anglebug.com/3662): Complete state capture.
auto capCap = [cap, &replayState](GLenum capEnum, bool capValue) { auto capCap = [cap, &replayState](GLenum capEnum, bool capValue) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment