• Home
  • Raw
  • Download

Lines Matching refs:I32

338     struct I32 { Val id; };  argument
383 void assert_true(I32 cond, I32 debug);
384 void assert_true(I32 cond, F32 debug) { this->assert_true(cond, this->bit_cast(debug)); } in assert_true()
385 void assert_true(I32 cond) { this->assert_true(cond, cond); } in assert_true()
388 void store8 (Arg ptr, I32 val);
389 void store16(Arg ptr, I32 val);
390 void store32(Arg ptr, I32 val);
393 I32 index();
396 I32 load8 (Arg ptr);
397 I32 load16(Arg ptr);
398 I32 load32(Arg ptr);
401 I32 uniform8 (Arg ptr, int offset);
402 I32 uniform16(Arg ptr, int offset);
403 I32 uniform32(Arg ptr, int offset);
407 I32 gather8 (Arg ptr, int offset, I32 index);
408 I32 gather16(Arg ptr, int offset, I32 index);
409 I32 gather32(Arg ptr, int offset, I32 index);
416 I32 uniform8 (Uniform u) { return this->uniform8 (u.ptr, u.offset); } in uniform8()
417 I32 uniform16(Uniform u) { return this->uniform16(u.ptr, u.offset); } in uniform16()
418 I32 uniform32(Uniform u) { return this->uniform32(u.ptr, u.offset); } in uniform32()
420 I32 gather8 (Uniform u, I32 index) { return this->gather8 (u.ptr, u.offset, index); } in gather8()
421 I32 gather16 (Uniform u, I32 index) { return this->gather16 (u.ptr, u.offset, index); } in gather16()
422 I32 gather32 (Uniform u, I32 index) { return this->gather32 (u.ptr, u.offset, index); } in gather32()
425 I32 splat(int n);
426 I32 splat(unsigned u) { return this->splat((int)u); } in splat()
459 I32 eq (F32 x, F32 y);
460 I32 neq(F32 x, F32 y);
461 I32 lt (F32 x, F32 y);
462 I32 lte(F32 x, F32 y);
463 I32 gt (F32 x, F32 y);
464 I32 gte(F32 x, F32 y);
467 I32 trunc(F32 x);
468 I32 round(F32 x);
469 I32 bit_cast(F32 x) { return {x.id}; } in bit_cast()
472 I32 add(I32 x, I32 y);
473 I32 sub(I32 x, I32 y);
474 I32 mul(I32 x, I32 y);
476 I32 shl(I32 x, int bits);
477 I32 shr(I32 x, int bits);
478 I32 sra(I32 x, int bits);
480 I32 eq (I32 x, I32 y);
481 I32 neq(I32 x, I32 y);
482 I32 lt (I32 x, I32 y);
483 I32 lte(I32 x, I32 y);
484 I32 gt (I32 x, I32 y);
485 I32 gte(I32 x, I32 y);
487 F32 to_f32(I32 x);
488 F32 bit_cast(I32 x) { return {x.id}; } in bit_cast()
491 I32 add_16x2(I32 x, I32 y);
492 I32 sub_16x2(I32 x, I32 y);
493 I32 mul_16x2(I32 x, I32 y);
495 I32 shl_16x2(I32 x, int bits);
496 I32 shr_16x2(I32 x, int bits);
497 I32 sra_16x2(I32 x, int bits);
499 I32 eq_16x2(I32 x, I32 y);
500 I32 neq_16x2(I32 x, I32 y);
501 I32 lt_16x2(I32 x, I32 y);
502 I32 lte_16x2(I32 x, I32 y);
503 I32 gt_16x2(I32 x, I32 y);
504 I32 gte_16x2(I32 x, I32 y);
507 I32 bit_and (I32 x, I32 y);
508 I32 bit_or (I32 x, I32 y);
509 I32 bit_xor (I32 x, I32 y);
510 I32 bit_clear(I32 x, I32 y); // x & ~y
512 I32 select(I32 cond, I32 t, I32 f); // cond ? t : f
513 F32 select(I32 cond, F32 t, F32 f) { in select()
539 I32 bytes (I32 x, int control);
541 I32 extract(I32 x, int bits, I32 z); // (x>>bits) & z
542 I32 pack (I32 x, I32 y, int bits); // x | (y << bits), assuming (x & (y << bits)) == 0
545 F32 from_unorm(int bits, I32); // E.g. from_unorm(8, x) -> x * (1/255.0f)
546 I32 to_unorm(int bits, F32); // E.g. to_unorm(8, x) -> round(x * 255)
548 Color unpack_1010102(I32 rgba);
549 Color unpack_8888 (I32 rgba);
550 Color unpack_565 (I32 bgr ); // bottom 16 bits