mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 05:27:49 +00:00
Rename mipLevel to levelCount in TextureDescriptor
This patch renames the field "mipLevel" of TextureDescriptor to "levelCount" to align with the WebGPU idl. BUG=dawn:16 Change-Id: I36b30d78831786e4c21ffd641f820375e95a1be5 Reviewed-on: https://dawn-review.googlesource.com/c/2100 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
e92ad5bb89
commit
84cde51741
@@ -389,7 +389,7 @@ namespace {
|
||||
descriptor.size.depth = 1;
|
||||
descriptor.arrayLayer = 1;
|
||||
descriptor.format = format;
|
||||
descriptor.mipLevel = 1;
|
||||
descriptor.levelCount = 1;
|
||||
descriptor.usage = dawn::TextureUsageBit::TransferDst | dawn::TextureUsageBit::Sampled;
|
||||
auto oTexture = device.CreateTexture(&descriptor);
|
||||
// TODO: release this texture
|
||||
|
||||
Reference in New Issue
Block a user