mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 08:27:05 +00:00
Refactor Internal Command Buffer Copy APIs
Modify internal command buffer types to reflect the front end APIs for copyTextureToBuffer and copyBufferToTexture. Bug: dawn:17 Change-Id: I088a167ee7145d741e70ed28c1df7a12d24b72fc Reviewed-on: https://dawn-review.googlesource.com/c/2740 Commit-Queue: Brandon1 Jones <brandon1.jones@intel.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
5acd60c929
commit
179db44c25
@@ -220,7 +220,10 @@ namespace {
|
||||
class CopySplitTest : public testing::Test {
|
||||
protected:
|
||||
TextureCopySplit DoTest(const TextureSpec& textureSpec, const BufferSpec& bufferSpec) {
|
||||
TextureCopySplit copySplit = ComputeTextureCopySplit(textureSpec.x, textureSpec.y, textureSpec.z, textureSpec.width, textureSpec.height, textureSpec.depth, textureSpec.texelSize, bufferSpec.offset, bufferSpec.rowPitch);
|
||||
TextureCopySplit copySplit = ComputeTextureCopySplit(
|
||||
{textureSpec.x, textureSpec.y, textureSpec.z},
|
||||
{textureSpec.width, textureSpec.height, textureSpec.depth}, textureSpec.texelSize,
|
||||
bufferSpec.offset, bufferSpec.rowPitch);
|
||||
ValidateCopySplit(textureSpec, bufferSpec, copySplit);
|
||||
return copySplit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user