Structure for Handling Vector Swizzling.
More...
#include <swizzle.h>
Inherits fennec::detail::swizzle_storage< DataT, ScalarT, IndicesV >.
template<typename VectorT, typename DataT, typename ScalarT, size_t... IndicesV>
struct fennec::swizzle< VectorT, DataT, ScalarT, IndicesV >
- Template Parameters
-
| VectorT | Vector Type |
| DataT | Base Data Type |
| ScalarT | Scalar Base Type |
| IndicesV | Swizzle Indices |
|
|
using | scalar_t = ScalarT |
| | alias for the scalar type
|
| |
|
| constexpr VectorT | decay () const |
| | Decay the Swizzle into a Vector.
|
| |
| constexpr | operator VectorT () const |
| | Vector Cast Operator.
|
| |
|
|
|
static constexpr size_t | dimension = sizeof...(IndicesV) |
| | dimension of the swizzle
|
| |
|
static constexpr size_t | num_components = sizeof...(IndicesV) |
| | number of components
|
| |
|
static constexpr size_t | size = sizeof...(IndicesV) |
| | size of the swizzle
|
| |
|
static constexpr size_t | N = sizeof...(IndicesV) |
| | size of the swizzle
|
| |
◆ decay()
template<typename VectorT , typename DataT , typename ScalarT , size_t... IndicesV>
| constexpr VectorT fennec::swizzle< VectorT, DataT, ScalarT, IndicesV >::decay |
( |
| ) |
const |
|
inlineconstexpr |
- Returns
- The Value of the Swizzle as a Vector
◆ operator VectorT()
template<typename VectorT , typename DataT , typename ScalarT , size_t... IndicesV>
| constexpr fennec::swizzle< VectorT, DataT, ScalarT, IndicesV >::operator VectorT |
( |
| ) |
const |
|
inlineexplicitconstexpr |
- Returns
- The Value of the Swizzle as a Vector
The documentation for this struct was generated from the following file: