mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
Deprecate TextureDescriptor::arrayLayerCount -> size.depth
This updates CL: - Adds a deprecation warning to use size.depth instead of arrayLayerCount. - Changes all tests and samples to use size.depth. - Adds deprecation tests for the change. In particular the state tracking in TextureBase isn't changed yet because it requires non-trivial changes in the backends. It will be done in a follow-up CL. Bug:dawn:22 Change-Id: Ic02dfb5baaba8d5b06cd339ce988e9b1d16cb5e9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/23101 Reviewed-by: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
6b3a974b42
commit
4234d78201
@@ -102,7 +102,6 @@ namespace dawn_native {
|
||||
desc.usage = swapChain->GetUsage();
|
||||
desc.dimension = wgpu::TextureDimension::e2D;
|
||||
desc.size = {swapChain->GetWidth(), swapChain->GetHeight(), 1};
|
||||
desc.arrayLayerCount = 1;
|
||||
desc.format = swapChain->GetFormat();
|
||||
desc.mipLevelCount = 1;
|
||||
desc.sampleCount = 1;
|
||||
@@ -181,7 +180,6 @@ namespace dawn_native {
|
||||
descriptor.size.width = mWidth;
|
||||
descriptor.size.height = mHeight;
|
||||
descriptor.size.depth = 1;
|
||||
descriptor.arrayLayerCount = 1;
|
||||
descriptor.sampleCount = 1;
|
||||
descriptor.format = mFormat;
|
||||
descriptor.mipLevelCount = 1;
|
||||
|
||||
Reference in New Issue
Block a user