summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/gfx/metal/metal-device.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gfx/metal/metal-device.cpp b/tools/gfx/metal/metal-device.cpp
index e20d3ea3b..34b00d0dd 100644
--- a/tools/gfx/metal/metal-device.cpp
+++ b/tools/gfx/metal/metal-device.cpp
@@ -653,8 +653,8 @@ Result DeviceImpl::createTextureView(
MTL::PixelFormat pixelFormat = desc.format == Format::Unknown
? textureImpl->m_pixelFormat
: MetalUtil::translatePixelFormat(desc.format);
- NS::Range levelRange(sr.baseArrayLayer, sr.layerCount);
- NS::Range sliceRange(sr.mipLevel, sr.mipLevelCount);
+ NS::Range sliceRange(sr.baseArrayLayer, sr.layerCount);
+ NS::Range levelRange(sr.mipLevel, sr.mipLevelCount);
viewImpl->m_textureView = NS::TransferPtr(textureImpl->m_texture->newTextureView(
pixelFormat,