mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 15:16:16 +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
@@ -55,7 +55,7 @@ void initTextures() {
|
||||
descriptor.size.depth = 1;
|
||||
descriptor.arrayLayer = 1;
|
||||
descriptor.format = dawn::TextureFormat::R8G8B8A8Unorm;
|
||||
descriptor.mipLevel = 1;
|
||||
descriptor.levelCount = 1;
|
||||
descriptor.usage = dawn::TextureUsageBit::TransferDst | dawn::TextureUsageBit::Sampled;
|
||||
texture = device.CreateTexture(&descriptor);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user