CSystem / softart

Automatically exported from code.google.com/p/softart
Other
0 stars 0 forks source link

Use typed mask object instead integral in cg_xxx::emit_write_mask/emit_swizzle #255

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Description:
   parameter p in function:
      emit_write_mask(int p)
   has two semantics:
      bit mask for write mask, or index of vector elements.
   It is so easy to lead misunderstanding.

   We need an typed mask object for the former case.

Original issue reported on code.google.com by wuye9036 on 2 Dec 2013 at 2:02

GoogleCodeExporter commented 9 years ago

Original comment by wuye9036 on 3 Dec 2013 at 5:28

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 45ee1e54e216.

Replace int32/uint32 write mask/swizzle with elem_indexes object.

Original comment by wuye9036 on 4 Dec 2013 at 8:48

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 0a878457aeb1.

Remove unused code.

Original comment by wuye9036 on 4 Dec 2013 at 8:48

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 1a71a444ab62.

Fixed a bug of count bits.
Fixed wrong variable name of xxx.user.in.
Print diagnostic when syntax/semantic error occurs.

Original comment by wuye9036 on 4 Dec 2013 at 8:48

GoogleCodeExporter commented 9 years ago

Original comment by wuye9036 on 5 Dec 2013 at 2:03