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.
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.