public PVRTC(PvrtcFormat format) { BitDepth = BitsPerValue = format == PvrtcFormat.PVRTCI_2bpp_RGB || format == PvrtcFormat.PVRTCI_2bpp_RGBA || format == PvrtcFormat.PVRTCII_2bpp ? 32 : 64; _format = format; FormatName = format.ToString(); }
public PVRTC(PvrtcFormat format) { BitDepth = (format == PvrtcFormat.PVRTCA_2bpp || format == PvrtcFormat.PVRTC_2bpp || format == PvrtcFormat.PVRTC2_2bpp) ? 2 : 4; BlockBitDepth = (format == PvrtcFormat.PVRTCA_2bpp || format == PvrtcFormat.PVRTC_2bpp || format == PvrtcFormat.PVRTC2_2bpp) ? 32 : 64; _format = format; FormatName = format.ToString(); }
public PVRTC(PvrtcFormat format, int width, int height) { BitDepth = BitsPerValue = format == PvrtcFormat.PVRTCA_2bpp || format == PvrtcFormat.PVRTC_2bpp || format == PvrtcFormat.PVRTC2_2bpp ? 32 : 64; _format = format; _width = width; _height = height; FormatName = format.ToString(); }