mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
Use mipLevel/arrayLayer for TextureCopyView
These are the names for the level/slice concept in WebGPU and this one occurence was forgotten in the previous rename. BUG=dawn:22 Change-Id: I0aef05e21b2291cf02712034c6ddc3ab62ecbc33 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/8681 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
a0491c9141
commit
3c3e2bc4d9
@@ -245,13 +245,13 @@ namespace utils {
|
||||
}
|
||||
|
||||
dawn::TextureCopyView CreateTextureCopyView(dawn::Texture texture,
|
||||
uint32_t level,
|
||||
uint32_t slice,
|
||||
uint32_t mipLevel,
|
||||
uint32_t arrayLayer,
|
||||
dawn::Origin3D origin) {
|
||||
dawn::TextureCopyView textureCopyView;
|
||||
textureCopyView.texture = texture;
|
||||
textureCopyView.level = level;
|
||||
textureCopyView.slice = slice;
|
||||
textureCopyView.mipLevel = mipLevel;
|
||||
textureCopyView.arrayLayer = arrayLayer;
|
||||
textureCopyView.origin = origin;
|
||||
|
||||
return textureCopyView;
|
||||
|
||||
Reference in New Issue
Block a user