Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_types.h
| Show First 20 Lines • Show All 300 Lines • ▼ Show 20 Lines | public: | ||||
| ccl_always_inline vector3(const T& a) | ccl_always_inline vector3(const T& a) | ||||
| : x(a), y(a), z(a) {} | : x(a), y(a), z(a) {} | ||||
| ccl_always_inline vector3(const T& x, const T& y, const T& z) | ccl_always_inline vector3(const T& x, const T& y, const T& z) | ||||
| : x(x), y(y), z(z) {} | : x(x), y(y), z(z) {} | ||||
| }; | }; | ||||
| #endif | #endif | ||||
| #define ALIGN_UP(offset, alignment) ((offset + alignment - 1) & ~(alignment - 1)) | |||||
brecht: This is not used it seems, and there's `align_up` anyway. | |||||
| #ifndef __KERNEL_GPU__ | #ifndef __KERNEL_GPU__ | ||||
| /* Vector Type Constructors | /* Vector Type Constructors | ||||
| * | * | ||||
| * OpenCL does not support C++ class, so we use these instead. */ | * OpenCL does not support C++ class, so we use these instead. */ | ||||
| ccl_device_inline uchar2 make_uchar2(uchar x, uchar y) | ccl_device_inline uchar2 make_uchar2(uchar x, uchar y) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 264 Lines • Show Last 20 Lines | |||||
This is not used it seems, and there's align_up anyway.