jmorton06 / Lumos

Cross-Platform C++ 2D/3D game engine
MIT License
1.26k stars 138 forks source link

Reduced memory footprint of graphics RHI definitions enums #129

Closed adriengivry closed 9 months ago

adriengivry commented 9 months ago

Describe the issue (if no issue has been made)

Graphics RHI definitions, especially enums, take more memory space than necessary. Most of these enums shouldn't support more than 256 values, so declaring them with uint8_t is sufficient. This reduces memory footprint of these enums by a factor of 4.