TexConv/config.h
2019-11-26 17:27:48 +08:00

32 lines
631 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
using uint=unsigned int;
namespace
{
enum class FormatType:uint
{
R=0,
RG,
RGB,
RGBA,
CubeR,
CubeRG,
CubeRGB,
CubeRGBA,
BEGIN_RANGE =R,
END_RANGE =CubeRGBA,
RANGE_SIZE =END_RANGE-BEGIN_RANGE+1
};//
struct FormatConfig
{
uint force_bit; ///<色彩强制位数为0表示自适应
bool force_float; ///<色彩强制浮点
bool gen_mipmaps; ///<生成mipmaps
bool gen_ibl_cubemap; ///<生成ibl pbr用ibl cubemap
};
}//namespace