mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 01:15:39 +00:00
Use WGPU_MIP_LEVEL_COUNT_UNDEFINED instead of 0
The follow up CL will remove 0. Bug: dawn:1026 Change-Id: Ida62f8d8b0dd8f9722e40f3f95366d3db0c7ab52 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/64164 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Jie A Chen <jie.a.chen@intel.com>
This commit is contained in:
@@ -109,10 +109,11 @@ namespace {
|
||||
ASSERT_DEVICE_ERROR(texture.CreateView(&descriptor));
|
||||
}
|
||||
|
||||
// baseMipLevel == k && mipLevelCount == 0 means to use levels k..end.
|
||||
// baseMipLevel == k && mipLevelCount == WGPU_MIP_LEVEL_COUNT_UNDEFINED means to use levels
|
||||
// k..end.
|
||||
{
|
||||
wgpu::TextureViewDescriptor descriptor = base2DTextureViewDescriptor;
|
||||
descriptor.mipLevelCount = 0;
|
||||
descriptor.mipLevelCount = WGPU_MIP_LEVEL_COUNT_UNDEFINED;
|
||||
|
||||
descriptor.baseMipLevel = 0;
|
||||
texture.CreateView(&descriptor);
|
||||
@@ -255,10 +256,11 @@ namespace {
|
||||
}
|
||||
}
|
||||
|
||||
// baseMipLevel == k && mipLevelCount == 0 means to use levels k..end.
|
||||
// baseMipLevel == k && mipLevelCount == WGPU_MIP_LEVEL_COUNT_UNDEFINED means to use levels
|
||||
// k..end.
|
||||
{
|
||||
wgpu::TextureViewDescriptor descriptor = base3DTextureViewDescriptor;
|
||||
descriptor.mipLevelCount = 0;
|
||||
descriptor.mipLevelCount = WGPU_MIP_LEVEL_COUNT_UNDEFINED;
|
||||
|
||||
descriptor.baseMipLevel = 0;
|
||||
texture.CreateView(&descriptor);
|
||||
|
||||
Reference in New Issue
Block a user