gstreamer_gl::functionsFunction gl_swizzle_invert
Source pub fn gl_swizzle_invert(swizzle: [i32; 4]) -> [i32; 4]
Expand description
Given swizzle
, produce inversion
such that:
swizzle
[inversion
[i]] == identity[i] where:
- identity = {0, 1, 2,…}
- unset fields are marked by -1
§swizzle
input swizzle
§Returns
§inversion
resulting inversion