int Encode ( int width, int height, bool hdr, bool uav, bool mips ) { return (width & 0x3FFF) | ((height & 0x3FFFF)<<14) | (hdr?1 : 0); }