主权项 |
1. A computer-implemented method for providing compression in graphics rendering comprising:
determining a plurality of values associated with individual pixels of a tile of pixels; determining, based at least in part on the tile of pixels, a plurality of pixel regions, wherein each pixel region comprises a corresponding subset of the individual pixels; determining, for an individual pixel region of the plurality of pixel regions, the subset of values associated with the subset of individual pixels corresponding to the individual pixel region comprises a single distinct value; setting a pixel region value for the individual pixel region to a bit value indicating the individual pixel region comprises the single distinct value; storing, in memory, graphics data comprising the pixel region value and the single distinct value associated with the individual pixel region; determining a number of bits for the graphics data; determining a bit budget; comparing the number of bits for the graphics data with the bit budget, and if the number of bits for the graphics data is less than the bit budget, storing, in memory, the graphics data; and if the number of bits for the graphics data is greater than the bit budget, storing, in memory, second graphics data comprising the plurality of values associated with individual pixels of the tile of pixels, wherein the bit budget comprises one of a plurality of available bit budgets. |