Module ocl_core::types::vectors
[−]
[src]
OpenCL vector types.
These types should have the same memory layout no matter which repr
is
used. The default (repr(rust)
) will be used until SIMD support is stable
and its use can be evaluated. If using any of these types within another
struct, memory alignment must be managed manually using spacing, etc.
(OPEN QUESTION: Does using repr(simd) somehow help in this case?). If
using within a Vec
(typical usage, i.e.: Vec<ClFloat4>
) you don't need
to worry about it.
[TODO]: Create a macro to implement Index
, mathematical operations such
as Add
, Mul
, etc., and whatever else.
Not sure about swizzling interfaces or if they'll ever be realistic. Obviously for now just use .0, .1, .2, etc.