[Bf-blender-cvs] [34c86aa3890] temp-viewport-compositor-compiler: Viewport Compositor: Fix GCC compiler errors

Omar Emara noreply at git.blender.org
Fri Apr 1 13:24:53 CEST 2022


Commit: 34c86aa38900a40e71dff5eab44b65d9c9f87452
Author: Omar Emara
Date:   Fri Apr 1 13:22:52 2022 +0200
Branches: temp-viewport-compositor-compiler
https://developer.blender.org/rB34c86aa38900a40e71dff5eab44b65d9c9f87452

Viewport Compositor: Fix GCC compiler errors

===================================================================

M	source/blender/nodes/intern/node_compositor_execute.cc

===================================================================

diff --git a/source/blender/nodes/intern/node_compositor_execute.cc b/source/blender/nodes/intern/node_compositor_execute.cc
index 1eb98f948a6..94acfcd2c46 100644
--- a/source/blender/nodes/intern/node_compositor_execute.cc
+++ b/source/blender/nodes/intern/node_compositor_execute.cc
@@ -1006,6 +1006,9 @@ GPUShader *RealizeOnDomainProcessorOperation::get_realization_shader()
     case ResultType::Float:
       return GPU_shader_create_from_info_name("compositor_realize_on_domain_float");
   }
+
+  BLI_assert_unreachable();
+  return nullptr;
 }
 
 Domain RealizeOnDomainProcessorOperation::compute_domain()
@@ -1378,6 +1381,9 @@ static const char *get_store_function_name(ResultType type)
     case ResultType::Color:
       return "store_output_color";
   }
+
+  BLI_assert_unreachable();
+  return nullptr;
 }
 
 static eGPUTextureFormat texture_format_from_result_type(ResultType type)
@@ -1390,6 +1396,9 @@ static eGPUTextureFormat texture_format_from_result_type(ResultType type)
     case ResultType::Color:
       return GPU_RGBA16F;
   }
+
+  BLI_assert_unreachable();
+  return GPU_RGBA16F;
 }
 
 void GPUMaterialOperation::populate_material_result(DOutputSocket output, GPUMaterial *material)



More information about the Bf-blender-cvs mailing list