public IsEquivalentFormatSupported ( TextureType ttype, PixelFormat format, TextureUsage usage ) : bool | ||
ttype | TextureType | |
format | PixelFormat | |
usage | TextureUsage | |
return | bool |
public bool IsEquivalentFormatSupported( TextureType ttype, PixelFormat format, TextureUsage usage )
{
PixelFormat supportedFormat = GetNativeFormat( ttype, format, usage );
// Assume that same or greater number of bits means quality not degraded
return PixelUtil.GetNumElemBits( supportedFormat ) >= PixelUtil.GetNumElemBits( format );
}