mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-27 01:22:37 -06:00
VideoCore: Remove some unused functions.
This commit is contained in:
parent
d13bd327ba
commit
614baa39d1
1 changed files with 0 additions and 26 deletions
|
@ -8,32 +8,6 @@
|
||||||
|
|
||||||
#include "common/common_types.h"
|
#include "common/common_types.h"
|
||||||
|
|
||||||
namespace FormatPrecision {
|
|
||||||
|
|
||||||
/// Adjust RGBA8 color with RGBA6 precision
|
|
||||||
static inline u32 rgba8_with_rgba6(u32 src) {
|
|
||||||
u32 color = src;
|
|
||||||
color &= 0xFCFCFCFC;
|
|
||||||
color |= (color >> 6) & 0x03030303;
|
|
||||||
return color;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Adjust RGBA8 color with RGB565 precision
|
|
||||||
static inline u32 rgba8_with_rgb565(u32 src) {
|
|
||||||
u32 color = (src & 0xF8FCF8);
|
|
||||||
color |= (color >> 5) & 0x070007;
|
|
||||||
color |= (color >> 6) & 0x000300;
|
|
||||||
color |= 0xFF000000;
|
|
||||||
return color;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Adjust Z24 depth value with Z16 precision
|
|
||||||
static inline u32 z24_with_z16(u32 src) {
|
|
||||||
return (src & 0xFFFF00) | (src >> 16);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace
|
|
||||||
|
|
||||||
namespace VideoCore {
|
namespace VideoCore {
|
||||||
|
|
||||||
/// Structure for the TGA texture format (for dumping)
|
/// Structure for the TGA texture format (for dumping)
|
||||||
|
|
Loading…
Reference in a new issue