mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 01:15:39 +00:00
Format: Move the TexelBlockInfo inside an AspectInfo.
In follow up CLs additional will be added to the AspectInfo, like the supported component types. Also simplify the logic for GetTexelInfo since all aspects are the first aspects, except stencil which is always stencil8. Bug: dawn:517 Change-Id: Iebbcb8a7f8fa2c4b7b06f65d6e4e8917c0a85366 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/30100 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
84b70a6e4d
commit
6298d2b70c
@@ -291,9 +291,9 @@ class CopySplitTest : public testing::Test {
|
||||
ASSERT(textureSpec.width % textureSpec.blockWidth == 0 &&
|
||||
textureSpec.height % textureSpec.blockHeight == 0);
|
||||
dawn_native::TexelBlockInfo blockInfo = {};
|
||||
blockInfo.blockWidth = textureSpec.blockWidth;
|
||||
blockInfo.blockHeight = textureSpec.blockHeight;
|
||||
blockInfo.blockByteSize = textureSpec.texelBlockSizeInBytes;
|
||||
blockInfo.width = textureSpec.blockWidth;
|
||||
blockInfo.height = textureSpec.blockHeight;
|
||||
blockInfo.byteSize = textureSpec.texelBlockSizeInBytes;
|
||||
Texture2DCopySplit copySplit = ComputeTextureCopySplit(
|
||||
{textureSpec.x, textureSpec.y, textureSpec.z},
|
||||
{textureSpec.width, textureSpec.height, textureSpec.depth}, blockInfo,
|
||||
|
||||
Reference in New Issue
Block a user