summaryrefslogtreecommitdiff
path: root/tools/gfx/metal/metal-command-encoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/metal/metal-command-encoder.cpp')
-rw-r--r--tools/gfx/metal/metal-command-encoder.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/gfx/metal/metal-command-encoder.cpp b/tools/gfx/metal/metal-command-encoder.cpp
index f4c393193..cd6682172 100644
--- a/tools/gfx/metal/metal-command-encoder.cpp
+++ b/tools/gfx/metal/metal-command-encoder.cpp
@@ -363,9 +363,14 @@ void RenderCommandEncoder::setIndexBuffer(
switch (indexFormat)
{
- case Format::R16_UINT: m_indexBufferType = MTL::IndexTypeUInt16; break;
- case Format::R32_UINT: m_indexBufferType = MTL::IndexTypeUInt32; break;
- default: assert(!"unsupported index format");
+ case Format::R16_UINT:
+ m_indexBufferType = MTL::IndexTypeUInt16;
+ break;
+ case Format::R32_UINT:
+ m_indexBufferType = MTL::IndexTypeUInt32;
+ break;
+ default:
+ assert(!"unsupported index format");
}
}