meta4d-me / AssetPipeline

A scalable pipeline tool for graphics applications to build assets.
GNU General Public License v2.0
26 stars 8 forks source link

add EnumOptions class for API bool options #260

Closed T-rvw closed 11 months ago

T-rvw commented 11 months ago

For bool options, now you can use public/Base/EnumOptions.hpp to reduce API wrapper codes.

  1. It saves memory. It accepts an enum type and convert to a u8 array. Actually, can be more optimized to use bit array.
  2. Scope enum is better to know how many options the consumer/producer have. IDE will pop up all enum values after you input enum type and ::.