Hash :
dc9743fb
Author :
Date :
2020-07-14T11:33:29
Add buffer serialization capability Serializes buffers' states stored on CPU. Gets buffers contents on GPU by mapping buffers to CPU's address space, then copy their data. Unmap buffers after finish. Since this feature is for tests only, it is only implemented for the Vulkan backend. Adds buffer serialization to serializeContext method so that capture replay regresssion testing now compares the states of buffers too. Bug: angleproject:4817 Change-Id: Ic9b529701014d5ba8420023a021cd5ea381bd9a1 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2295950 Commit-Queue: Manh Nguyen <nguyenmh@google.com> Reviewed-by: Cody Northrop <cnorthrop@google.com> Reviewed-by: Jamie Madill <jmadill@chromium.org>
//
// Copyright 2020 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// BufferImpl.cpp: Implementation methods rx::BufferImpl class.
#include "libANGLE/renderer/BufferImpl.h"
namespace rx
{
angle::Result BufferImpl::getSubData(const gl::Context *context,
GLintptr offset,
GLsizeiptr size,
void *outData)
{
UNREACHABLE();
return angle::Result::Stop;
}
} // namespace rx