mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
common/color: Migrate code over to the Common namespace
No external code makes use of this header, so we can freely change the namespace.
This commit is contained in:
parent
bea9ed2548
commit
e864aa25d5
@ -10,7 +10,7 @@
|
|||||||
#include "common/swap.h"
|
#include "common/swap.h"
|
||||||
#include "common/vector_math.h"
|
#include "common/vector_math.h"
|
||||||
|
|
||||||
namespace Color {
|
namespace Common::Color {
|
||||||
|
|
||||||
/// Convert a 1-bit color component to 8 bit
|
/// Convert a 1-bit color component to 8 bit
|
||||||
[[nodiscard]] constexpr u8 Convert1To8(u8 value) {
|
[[nodiscard]] constexpr u8 Convert1To8(u8 value) {
|
||||||
@ -268,4 +268,4 @@ inline void EncodeX24S8(u8 stencil, u8* bytes) {
|
|||||||
bytes[3] = stencil;
|
bytes[3] = stencil;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Color
|
} // namespace Common::Color
|
||||||
|
Loading…
Reference in New Issue
Block a user