Function spirv_std::arch::vector_extract_dynamic
source · pub unsafe fn vector_extract_dynamic<T: Scalar, const N: usize>(
vector: impl Vector<T, N>,
index: usize
) -> T
Expand description
Extract a single, dynamically selected, component of a vector.
Safety
Behavior is undefined if index
’s value is greater than or equal to the
number of components in vector
.