Commit bdd1ac23 by Cody Northrop Committed by Commit Bot

Capture/Replay: Add CubeMapArray support

Test: Recapture Lego Legacy: Heroes Unboxed Bug: angleproject:5685 Change-Id: I41a5ceb72724ab28ce3d57a85108d3dd806d976f Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2721103Reviewed-by: 's avatarTim Van Patten <timvp@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Cody Northrop <cnorthrop@google.com>
parent f9c595b4
...@@ -2120,6 +2120,7 @@ void CaptureTextureStorage(std::vector<CallCapture> *setupCalls, ...@@ -2120,6 +2120,7 @@ void CaptureTextureStorage(std::vector<CallCapture> *setupCalls,
} }
case gl::TextureType::_3D: case gl::TextureType::_3D:
case gl::TextureType::_2DArray: case gl::TextureType::_2DArray:
case gl::TextureType::CubeMapArray:
{ {
Capture(setupCalls, CaptureTexStorage3D( Capture(setupCalls, CaptureTexStorage3D(
*replayState, true, texture->getType(), *replayState, true, texture->getType(),
...@@ -2171,7 +2172,8 @@ void CaptureTextureContents(std::vector<CallCapture> *setupCalls, ...@@ -2171,7 +2172,8 @@ void CaptureTextureContents(std::vector<CallCapture> *setupCalls,
} }
bool is3D = bool is3D =
(index.getType() == gl::TextureType::_3D || index.getType() == gl::TextureType::_2DArray); (index.getType() == gl::TextureType::_3D || index.getType() == gl::TextureType::_2DArray ||
index.getType() == gl::TextureType::CubeMapArray);
if (format.compressed) if (format.compressed)
{ {
...@@ -2679,7 +2681,8 @@ void CaptureMidExecutionSetup(const gl::Context *context, ...@@ -2679,7 +2681,8 @@ void CaptureMidExecutionSetup(const gl::Context *context,
index.getType() == gl::TextureType::_3D || index.getType() == gl::TextureType::_3D ||
index.getType() == gl::TextureType::_2DArray || index.getType() == gl::TextureType::_2DArray ||
index.getType() == gl::TextureType::Buffer || index.getType() == gl::TextureType::Buffer ||
index.getType() == gl::TextureType::CubeMap); index.getType() == gl::TextureType::CubeMap ||
index.getType() == gl::TextureType::CubeMapArray);
if (index.getType() == gl::TextureType::Buffer) if (index.getType() == gl::TextureType::Buffer)
{ {
......
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