• Home
  • Raw
  • Download

Lines Matching refs:to_unorm

1270 SI U32 to_unorm(F v, F scale, F bias = 1.0f) {
1599 dst = to_unorm(r, 1, 255) in STAGE()
1600 | to_unorm(g, 1, 255) << 8 in STAGE()
1601 | to_unorm(b, 1, 255) << 16 in STAGE()
1602 | to_unorm(a, 1, 255) << 24; in STAGE()
1840 r = from_byte(gather(tables->r, to_unorm(r, 255))); in STAGE()
1841 g = from_byte(gather(tables->g, to_unorm(g, 255))); in STAGE()
1842 b = from_byte(gather(tables->b, to_unorm(b, 255))); in STAGE()
1843 a = from_byte(gather(tables->a, to_unorm(a, 255))); in STAGE()
1957 U8 packed = pack(pack(to_unorm(a, 255))); in STAGE()
1982 U16 px = pack( to_unorm(r, 31) << 11 in STAGE()
1983 | to_unorm(g, 63) << 5 in STAGE()
1984 | to_unorm(b, 31) ); in STAGE()
2003 U16 px = pack( to_unorm(r, 15) << 12 in STAGE()
2004 | to_unorm(g, 15) << 8 in STAGE()
2005 | to_unorm(b, 15) << 4 in STAGE()
2006 | to_unorm(a, 15) ); in STAGE()
2026 U32 px = to_unorm(r, 255) in STAGE()
2027 | to_unorm(g, 255) << 8 in STAGE()
2028 | to_unorm(b, 255) << 16 in STAGE()
2029 | to_unorm(a, 255) << 24; in STAGE()
2054 U16 px = pack( to_unorm(r, 255) | to_unorm(g, 255) << 8 ); in STAGE()
2077 U16 px = pack(to_unorm(a, 65535)); in STAGE()
2102 U32 px = to_unorm(r, 65535) in STAGE()
2103 | to_unorm(g, 65535) << 16; in STAGE()
2123 U16 R = pack(to_unorm(r, 65535)), in STAGE()
2124 G = pack(to_unorm(g, 65535)), in STAGE()
2125 B = pack(to_unorm(b, 65535)), in STAGE()
2126 A = pack(to_unorm(a, 65535)); in STAGE()
2148 U32 px = to_unorm(r, 1023) in STAGE()
2149 | to_unorm(g, 1023) << 10 in STAGE()
2150 | to_unorm(b, 1023) << 20 in STAGE()
2151 | to_unorm(a, 3) << 30; in STAGE()
2198 U16 R = bswap(pack(to_unorm(r, 65535))), in STAGE()
2199 G = bswap(pack(to_unorm(g, 65535))), in STAGE()
2200 B = bswap(pack(to_unorm(b, 65535))), in STAGE()
2201 A = bswap(pack(to_unorm(a, 65535))); in STAGE()