bevy/crates/bevy_render
wyhaya 1cc663f290 Improve Color::hex performance (#6940)
# Objective

Improve `Color::hex` performance

#### Bench

```bash
running 2 tests
test bench_color_hex_after  ... bench:           4 ns/iter (+/- 0)
test bench_color_hex_before ... bench:          14 ns/iter (+/- 0)
```

## Solution

Use `const fn` decode hex value.

---

## Changelog

Rename

```rust
HexColorError::Hex(FromHexError) -> HexColorError::Char(char)
```
2023-01-17 13:26:43 +00:00
..
macros Support storage buffers in derive AsBindGroup (#6129) 2023-01-09 18:50:55 +00:00
src Improve Color::hex performance (#6940) 2023-01-17 13:26:43 +00:00
Cargo.toml Improve Color::hex performance (#6940) 2023-01-17 13:26:43 +00:00