mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
dawn.json: Make textureDescriptor use Extent3D
This matches WebGPU and is a good test of having structures include other structures by value. BUG=dawn:13 Change-Id: Ibd5ea1340338e5aa16069499c498ac5a455fc2cd Reviewed-on: https://dawn-review.googlesource.com/1500 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
1e68479cd6
commit
29353d6ee3
@@ -384,9 +384,9 @@ namespace {
|
||||
|
||||
dawn::TextureDescriptor descriptor;
|
||||
descriptor.dimension = dawn::TextureDimension::e2D;
|
||||
descriptor.width = iImage.width;
|
||||
descriptor.height = iImage.height;
|
||||
descriptor.depth = 1;
|
||||
descriptor.size.width = iImage.width;
|
||||
descriptor.size.height = iImage.height;
|
||||
descriptor.size.depth = 1;
|
||||
descriptor.arrayLayer = 1;
|
||||
descriptor.format = format;
|
||||
descriptor.mipLevel = 1;
|
||||
|
||||
Reference in New Issue
Block a user