Cycles: Split vectorized types into separate files
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 13 Apr 2017 17:34:45 +0000 (19:34 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 25 Apr 2017 08:33:26 +0000 (10:33 +0200)
commit51ec9441b74ccd02e5555b9385c3b2531f7411a6
treeaa580862491e63e42e91b9d1d63317d3f3baf01b
parentb06cd746ce9fb8dfe5361fa9d148bde73c26f5d3
Cycles: Split vectorized types into separate files

The final goal to reach is to make vectorized types much easier to maintain
and the previous design had following issues:

- Having all types and methods implementation made the source file rather
  bloated and unfun to navigate in.

- It was not possible to quickly glance available API for the type you are
  interested in.

- Adding more vectorization types will bloat the file even more, making
  things even more tricky to follow.
29 files changed:
intern/cycles/kernel/CMakeLists.txt
intern/cycles/util/CMakeLists.txt
intern/cycles/util/util_types.h
intern/cycles/util/util_types_float2.h [new file with mode: 0644]
intern/cycles/util/util_types_float2_impl.h [new file with mode: 0644]
intern/cycles/util/util_types_float3.h [new file with mode: 0644]
intern/cycles/util/util_types_float3_impl.h [new file with mode: 0644]
intern/cycles/util/util_types_float4.h [new file with mode: 0644]
intern/cycles/util/util_types_float4_impl.h [new file with mode: 0644]
intern/cycles/util/util_types_int2.h [new file with mode: 0644]
intern/cycles/util/util_types_int2_impl.h [new file with mode: 0644]
intern/cycles/util/util_types_int3.h [new file with mode: 0644]
intern/cycles/util/util_types_int3_impl.h [new file with mode: 0644]
intern/cycles/util/util_types_int4.h [new file with mode: 0644]
intern/cycles/util/util_types_int4_impl.h [new file with mode: 0644]
intern/cycles/util/util_types_uchar2.h [new file with mode: 0644]
intern/cycles/util/util_types_uchar2_impl.h [new file with mode: 0644]
intern/cycles/util/util_types_uchar3.h [new file with mode: 0644]
intern/cycles/util/util_types_uchar3_impl.h [new file with mode: 0644]
intern/cycles/util/util_types_uchar4.h [new file with mode: 0644]
intern/cycles/util/util_types_uchar4_impl.h [new file with mode: 0644]
intern/cycles/util/util_types_uint2.h [new file with mode: 0644]
intern/cycles/util/util_types_uint2_impl.h [new file with mode: 0644]
intern/cycles/util/util_types_uint3.h [new file with mode: 0644]
intern/cycles/util/util_types_uint3_impl.h [new file with mode: 0644]
intern/cycles/util/util_types_uint4.h [new file with mode: 0644]
intern/cycles/util/util_types_uint4_impl.h [new file with mode: 0644]
intern/cycles/util/util_types_vector3.h [new file with mode: 0644]
intern/cycles/util/util_types_vector3_impl.h [new file with mode: 0644]