[light] Use bitmask instead of std::set for color modes (#11348)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2025-10-20 07:48:14 +13:00
1 parent a0922bc8b0
commit fdecda3d65
12 files changed
+308 -59

No files matched your search

+10
View File
@@ -70,4 +70,14 @@ extend google.protobuf.FieldOptions {
// init(size) before adding elements. This eliminates std::vector template overhead
// and is ideal when the exact size is known before populating the array.
optional bool fixed_vector = 50013 [default=false];
// container_pointer_no_template: Use a non-template container type for repeated fields
// Similar to container_pointer, but for containers that don't take template parameters.
// The container type is used as-is without appending element type.
// The container must have:
// - begin() and end() methods returning iterators
// - empty() method
// Example: [(container_pointer_no_template) = "light::ColorModeMask"]
// generates: const light::ColorModeMask *supported_color_modes{};
optional string container_pointer_no_template = 50014;
}