mirror of
https://github.com/godotengine/godot.git
synced 2024-12-21 10:25:24 +08:00
3691cb0ca4
Adds a new `useHeuristics` compression mode for ETC2. Upstream defaults to enable it so we do the same.
14 lines
701 B
C++
14 lines
701 B
C++
#ifndef __PROCESSRGB_HPP__
|
|
#define __PROCESSRGB_HPP__
|
|
|
|
#include <stdint.h>
|
|
|
|
void CompressEtc1Alpha( const uint32_t* src, uint64_t* dst, uint32_t blocks, size_t width );
|
|
void CompressEtc2Alpha( const uint32_t* src, uint64_t* dst, uint32_t blocks, size_t width, bool useHeuristics );
|
|
void CompressEtc1Rgb( const uint32_t* src, uint64_t* dst, uint32_t blocks, size_t width );
|
|
void CompressEtc1RgbDither( const uint32_t* src, uint64_t* dst, uint32_t blocks, size_t width );
|
|
void CompressEtc2Rgb( const uint32_t* src, uint64_t* dst, uint32_t blocks, size_t width, bool useHeuristics );
|
|
void CompressEtc2Rgba( const uint32_t* src, uint64_t* dst, uint32_t blocks, size_t width, bool useHeuristics );
|
|
|
|
#endif
|