34 uint x, y, block_offset, block;
37 if (coord.x < 0 || coord.y < 0)
45 if (x >= dims.x || y >= dims.y)
55 block_offset = location + (x >> 1u) + (y >> 1u) * ((dims.x + 1u) >> 1u);
59 bit0x = ((x & 1u) != 0u) ? 8u : 0u;
60 bit0y = ((y & 1u) != 0u) ? 16u : 0u;
uint fastuidraw_read_texel_from_data(in ivec2 coord, in uvec2 dims, in uint location)
Read 8-bit texel data from 32-bit linear data as packed into a fastuidraw::GlyphAtlas by fastuidraw::...
vecN< uint32_t, 2 > uvec2
#define FASTUIDRAW_EXTRACT_BITS(bit0, num_bits, src)
#define fastuidraw_fetch_glyph_data(X)