Cleanup: Compositor: List all types in switch case

Replace default cases with all types to make adding new types easier.
This commit is contained in:
Omar Emara
2025-02-20 14:32:39 +02:00
parent 5e8f96277d
commit fc02027d1c
2 changed files with 8 additions and 4 deletions

View File

@@ -748,8 +748,10 @@ class FileOutputOperation : public NodeOperation {
});
return buffer;
}
default:
/* Other types are internal and needn't be handled by operations. */
case ResultType::Int:
case ResultType::Int2:
case ResultType::Float2:
/* Not supported. */
break;
}

View File

@@ -773,8 +773,10 @@ class RenderLayerOperation : public NodeOperation {
case ResultType::Color:
case ResultType::Float4:
return "compositor_read_input_float4";
default:
/* Other types are internal and needn't be handled by operations. */
case ResultType::Int:
case ResultType::Int2:
case ResultType::Float2:
/* Not supported. */
break;
}