@@ -155,6 +155,8 @@ constexpr vk::Format ToVKImageFormat(PixelFormat format) {
155
155
case PixelFormat::kR8G8UNormInt :
156
156
return vk::Format::eR8G8Unorm;
157
157
}
158
+
159
+ FML_UNREACHABLE ();
158
160
}
159
161
160
162
constexpr PixelFormat ToPixelFormat (vk::Format format) {
@@ -254,6 +256,8 @@ constexpr vk::ShaderStageFlags ToVkShaderStage(ShaderStage stage) {
254
256
case ShaderStage::kVertex :
255
257
return vk::ShaderStageFlagBits::eVertex;
256
258
}
259
+
260
+ FML_UNREACHABLE ();
257
261
}
258
262
259
263
constexpr vk::DescriptorSetLayoutBinding ToVKDescriptorSetLayoutBinding (
@@ -284,6 +288,8 @@ constexpr vk::AttachmentLoadOp ToVKAttachmentLoadOp(LoadAction load_action) {
284
288
case LoadAction::kDontCare :
285
289
return vk::AttachmentLoadOp::eDontCare;
286
290
}
291
+
292
+ FML_UNREACHABLE ();
287
293
}
288
294
289
295
constexpr vk::AttachmentStoreOp ToVKAttachmentStoreOp (
@@ -298,6 +304,8 @@ constexpr vk::AttachmentStoreOp ToVKAttachmentStoreOp(
298
304
// TODO (kaushikiska): vulkan doesn't support multisample resolve.
299
305
return vk::AttachmentStoreOp::eDontCare;
300
306
}
307
+
308
+ FML_UNREACHABLE ();
301
309
}
302
310
303
311
constexpr vk::IndexType ToVKIndexType (IndexType index_type) {
@@ -309,6 +317,8 @@ constexpr vk::IndexType ToVKIndexType(IndexType index_type) {
309
317
case IndexType::kUnknown :
310
318
return vk::IndexType::eUint32;
311
319
}
320
+
321
+ FML_UNREACHABLE ();
312
322
}
313
323
314
324
constexpr vk::PrimitiveTopology ToVKPrimitiveTopology (PrimitiveType primitive) {
@@ -324,6 +334,8 @@ constexpr vk::PrimitiveTopology ToVKPrimitiveTopology(PrimitiveType primitive) {
324
334
case PrimitiveType::kPoint :
325
335
return vk::PrimitiveTopology::ePointList;
326
336
}
337
+
338
+ FML_UNREACHABLE ();
327
339
}
328
340
329
341
} // namespace impeller
0 commit comments