Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

math.shuffle

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static bool shuffle(bool2 left, bool2 right, ShuffleComponent x);

Parameters

Parameter Description
left bool2 to use as the left argument of the shuffle operation.
right bool2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting bool.

Returns

bool bool result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two bool2 vectors into a bool value.


Declaration

public static bool2 shuffle(bool2 left, bool2 right, ShuffleComponent x, ShuffleComponent y);

Parameters

Parameter Description
left bool2 to use as the left argument of the shuffle operation.
right bool2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting bool2 x component.
y The ShuffleComponent to use when setting the resulting bool2 y component.

Returns

bool2 bool2 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two bool2 vectors into a bool2 vector.


Declaration

public static bool3 shuffle(bool2 left, bool2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z);

Parameters

Parameter Description
left bool2 to use as the left argument of the shuffle operation.
right bool2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting bool3 x component.
y The ShuffleComponent to use when setting the resulting bool3 y component.
z The ShuffleComponent to use when setting the resulting bool3 z component.

Returns

bool3 bool3 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two bool2 vectors into a bool3 vector.


Declaration

public static bool4 shuffle(bool2 left, bool2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w);

Parameters

Parameter Description
left bool2 to use as the left argument of the shuffle operation.
right bool2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting bool4 x component.
y The ShuffleComponent to use when setting the resulting bool4 y component.
z The ShuffleComponent to use when setting the resulting bool4 z component.
w The ShuffleComponent to use when setting the resulting bool4 w component.

Returns

bool4 bool4 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two bool2 vectors into a bool4 vector.


Declaration

public static bool shuffle(bool3 left, bool3 right, ShuffleComponent x);

Parameters

Parameter Description
left bool3 to use as the left argument of the shuffle operation.
right bool3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting bool.

Returns

bool bool result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two bool3 vectors into a bool value.


Declaration

public static bool2 shuffle(bool3 left, bool3 right, ShuffleComponent x, ShuffleComponent y);

Parameters

Parameter Description
left bool3 to use as the left argument of the shuffle operation.
right bool3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting bool2 x component.
y The ShuffleComponent to use when setting the resulting bool2 y component.

Returns

bool2 bool2 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two bool3 vectors into a bool2 vector.


Declaration

public static bool3 shuffle(bool3 left, bool3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z);

Parameters

Parameter Description
left bool3 to use as the left argument of the shuffle operation.
right bool3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting bool3 x component.
y The ShuffleComponent to use when setting the resulting bool3 y component.
z The ShuffleComponent to use when setting the resulting bool3 z component.

Returns

bool3 bool3 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two bool3 vectors into a bool3 vector.


Declaration

public static bool4 shuffle(bool3 left, bool3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w);

Parameters

Parameter Description
left bool3 to use as the left argument of the shuffle operation.
right bool3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting bool4 x component.
y The ShuffleComponent to use when setting the resulting bool4 y component.
z The ShuffleComponent to use when setting the resulting bool4 z component.
w The ShuffleComponent to use when setting the resulting bool4 w component.

Returns

bool4 bool4 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two bool3 vectors into a bool4 vector.


Declaration

public static bool shuffle(bool4 left, bool4 right, ShuffleComponent x);

Parameters

Parameter Description
left bool4 to use as the left argument of the shuffle operation.
right bool4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting bool.

Returns

bool bool result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two bool4 vectors into a bool value.


Declaration

public static bool2 shuffle(bool4 left, bool4 right, ShuffleComponent x, ShuffleComponent y);

Parameters

Parameter Description
left bool4 to use as the left argument of the shuffle operation.
right bool4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting bool2 x component.
y The ShuffleComponent to use when setting the resulting bool2 y component.

Returns

bool2 bool2 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two bool4 vectors into a bool2 vector.


Declaration

public static bool3 shuffle(bool4 left, bool4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z);

Parameters

Parameter Description
left bool4 to use as the left argument of the shuffle operation.
right bool4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting bool3 x component.
y The ShuffleComponent to use when setting the resulting bool3 y component.
z The ShuffleComponent to use when setting the resulting bool3 z component.

Returns

bool3 bool3 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two bool4 vectors into a bool3 vector.


Declaration

public static bool4 shuffle(bool4 left, bool4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w);

Parameters

Parameter Description
left bool4 to use as the left argument of the shuffle operation.
right bool4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting bool4 x component.
y The ShuffleComponent to use when setting the resulting bool4 y component.
z The ShuffleComponent to use when setting the resulting bool4 z component.
w The ShuffleComponent to use when setting the resulting bool4 w component.

Returns

bool4 bool4 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two bool4 vectors into a bool4 vector.


Declaration

public static double shuffle(double2 left, double2 right, ShuffleComponent x);

Parameters

Parameter Description
left double2 to use as the left argument of the shuffle operation.
right double2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting double.

Returns

double double result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two double2 vectors into a double value.


Declaration

public static double2 shuffle(double2 left, double2 right, ShuffleComponent x, ShuffleComponent y);

Parameters

Parameter Description
left double2 to use as the left argument of the shuffle operation.
right double2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting double2 x component.
y The ShuffleComponent to use when setting the resulting double2 y component.

Returns

double2 double2 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two double2 vectors into a double2 vector.


Declaration

public static double3 shuffle(double2 left, double2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z);

Parameters

Parameter Description
left double2 to use as the left argument of the shuffle operation.
right double2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting double3 x component.
y The ShuffleComponent to use when setting the resulting double3 y component.
z The ShuffleComponent to use when setting the resulting double3 z component.

Returns

double3 double3 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two double2 vectors into a double3 vector.


Declaration

public static double4 shuffle(double2 left, double2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w);

Parameters

Parameter Description
left double2 to use as the left argument of the shuffle operation.
right double2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting double4 x component.
y The ShuffleComponent to use when setting the resulting double4 y component.
z The ShuffleComponent to use when setting the resulting double4 z component.
w The ShuffleComponent to use when setting the resulting double4 w component.

Returns

double4 double4 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two double2 vectors into a double4 vector.


Declaration

public static double shuffle(double3 left, double3 right, ShuffleComponent x);

Parameters

Parameter Description
left double3 to use as the left argument of the shuffle operation.
right double3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting double.

Returns

double double result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two double3 vectors into a double value.


Declaration

public static double2 shuffle(double3 left, double3 right, ShuffleComponent x, ShuffleComponent y);

Parameters

Parameter Description
left double3 to use as the left argument of the shuffle operation.
right double3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting double2 x component.
y The ShuffleComponent to use when setting the resulting double2 y component.

Returns

double2 double2 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two double3 vectors into a double2 vector.


Declaration

public static double3 shuffle(double3 left, double3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z);

Parameters

Parameter Description
left double3 to use as the left argument of the shuffle operation.
right double3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting double3 x component.
y The ShuffleComponent to use when setting the resulting double3 y component.
z The ShuffleComponent to use when setting the resulting double3 z component.

Returns

double3 double3 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two double3 vectors into a double3 vector.


Declaration

public static double4 shuffle(double3 left, double3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w);

Parameters

Parameter Description
left double3 to use as the left argument of the shuffle operation.
right double3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting double4 x component.
y The ShuffleComponent to use when setting the resulting double4 y component.
z The ShuffleComponent to use when setting the resulting double4 z component.
w The ShuffleComponent to use when setting the resulting double4 w component.

Returns

double4 double4 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two double3 vectors into a double4 vector.


Declaration

public static double shuffle(double4 left, double4 right, ShuffleComponent x);

Parameters

Parameter Description
left double4 to use as the left argument of the shuffle operation.
right double4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting double.

Returns

double double result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two double4 vectors into a double value.


Declaration

public static double2 shuffle(double4 left, double4 right, ShuffleComponent x, ShuffleComponent y);

Parameters

Parameter Description
left double4 to use as the left argument of the shuffle operation.
right double4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting double2 x component.
y The ShuffleComponent to use when setting the resulting double2 y component.

Returns

double2 double2 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two double4 vectors into a double2 vector.


Declaration

public static double3 shuffle(double4 left, double4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z);

Parameters

Parameter Description
left double4 to use as the left argument of the shuffle operation.
right double4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting double3 x component.
y The ShuffleComponent to use when setting the resulting double3 y component.
z The ShuffleComponent to use when setting the resulting double3 z component.

Returns

double3 double3 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two double4 vectors into a double3 vector.


Declaration

public static double4 shuffle(double4 left, double4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w);

Parameters

Parameter Description
left double4 to use as the left argument of the shuffle operation.
right double4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting double4 x component.
y The ShuffleComponent to use when setting the resulting double4 y component.
z The ShuffleComponent to use when setting the resulting double4 z component.
w The ShuffleComponent to use when setting the resulting double4 w component.

Returns

double4 double4 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two double4 vectors into a double4 vector.


Declaration

public static float shuffle(float2 left, float2 right, ShuffleComponent x);

Parameters

Parameter Description
left float2 to use as the left argument of the shuffle operation.
right float2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting float.

Returns

float float result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two float2 vectors into a float value.


Declaration

public static float2 shuffle(float2 left, float2 right, ShuffleComponent x, ShuffleComponent y);

Parameters

Parameter Description
left float2 to use as the left argument of the shuffle operation.
right float2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting float2 x component.
y The ShuffleComponent to use when setting the resulting float2 y component.

Returns

float2 float2 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two float2 vectors into a float2 vector.


Declaration

public static float3 shuffle(float2 left, float2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z);

Parameters

Parameter Description
left float2 to use as the left argument of the shuffle operation.
right float2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting float3 x component.
y The ShuffleComponent to use when setting the resulting float3 y component.
z The ShuffleComponent to use when setting the resulting float3 z component.

Returns

float3 float3 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two float2 vectors into a float3 vector.


Declaration

public static float4 shuffle(float2 left, float2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w);

Parameters

Parameter Description
left float2 to use as the left argument of the shuffle operation.
right float2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting float4 x component.
y The ShuffleComponent to use when setting the resulting float4 y component.
z The ShuffleComponent to use when setting the resulting float4 z component.
w The ShuffleComponent to use when setting the resulting float4 w component.

Returns

float4 float4 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two float2 vectors into a float4 vector.


Declaration

public static float shuffle(float3 left, float3 right, ShuffleComponent x);

Parameters

Parameter Description
left float3 to use as the left argument of the shuffle operation.
right float3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting float.

Returns

float float result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two float3 vectors into a float value.


Declaration

public static float2 shuffle(float3 left, float3 right, ShuffleComponent x, ShuffleComponent y);

Parameters

Parameter Description
left float3 to use as the left argument of the shuffle operation.
right float3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting float2 x component.
y The ShuffleComponent to use when setting the resulting float2 y component.

Returns

float2 float2 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two float3 vectors into a float2 vector.


Declaration

public static float3 shuffle(float3 left, float3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z);

Parameters

Parameter Description
left float3 to use as the left argument of the shuffle operation.
right float3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting float3 x component.
y The ShuffleComponent to use when setting the resulting float3 y component.
z The ShuffleComponent to use when setting the resulting float3 z component.

Returns

float3 float3 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two float3 vectors into a float3 vector.


Declaration

public static float4 shuffle(float3 left, float3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w);

Parameters

Parameter Description
left float3 to use as the left argument of the shuffle operation.
right float3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting float4 x component.
y The ShuffleComponent to use when setting the resulting float4 y component.
z The ShuffleComponent to use when setting the resulting float4 z component.
w The ShuffleComponent to use when setting the resulting float4 w component.

Returns

float4 float4 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two float3 vectors into a float4 vector.


Declaration

public static float shuffle(float4 left, float4 right, ShuffleComponent x);

Parameters

Parameter Description
left float4 to use as the left argument of the shuffle operation.
right float4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting float.

Returns

float float result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two float4 vectors into a float value.


Declaration

public static float2 shuffle(float4 left, float4 right, ShuffleComponent x, ShuffleComponent y);

Parameters

Parameter Description
left float4 to use as the left argument of the shuffle operation.
right float4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting float2 x component.
y The ShuffleComponent to use when setting the resulting float2 y component.

Returns

float2 float2 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two float4 vectors into a float2 vector.


Declaration

public static float3 shuffle(float4 left, float4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z);

Parameters

Parameter Description
left float4 to use as the left argument of the shuffle operation.
right float4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting float3 x component.
y The ShuffleComponent to use when setting the resulting float3 y component.
z The ShuffleComponent to use when setting the resulting float3 z component.

Returns

float3 float3 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two float4 vectors into a float3 vector.


Declaration

public static float4 shuffle(float4 left, float4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w);

Parameters

Parameter Description
left float4 to use as the left argument of the shuffle operation.
right float4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting float4 x component.
y The ShuffleComponent to use when setting the resulting float4 y component.
z The ShuffleComponent to use when setting the resulting float4 z component.
w The ShuffleComponent to use when setting the resulting float4 w component.

Returns

float4 float4 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two float4 vectors into a float4 vector.


Declaration

public static int shuffle(int2 left, int2 right, ShuffleComponent x);

Parameters

Parameter Description
left int2 to use as the left argument of the shuffle operation.
right int2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting int.

Returns

int int result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two int2 vectors into an int value.


Declaration

public static int2 shuffle(int2 left, int2 right, ShuffleComponent x, ShuffleComponent y);

Parameters

Parameter Description
left int2 to use as the left argument of the shuffle operation.
right int2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting int2 x component.
y The ShuffleComponent to use when setting the resulting int2 y component.

Returns

int2 int2 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two int2 vectors into an int2 vector.


Declaration

public static int3 shuffle(int2 left, int2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z);

Parameters

Parameter Description
left int2 to use as the left argument of the shuffle operation.
right int2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting int3 x component.
y The ShuffleComponent to use when setting the resulting int3 y component.
z The ShuffleComponent to use when setting the resulting int3 z component.

Returns

int3 int3 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two int2 vectors into an int3 vector.


Declaration

public static int4 shuffle(int2 left, int2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w);

Parameters

Parameter Description
left int2 to use as the left argument of the shuffle operation.
right int2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting int4 x component.
y The ShuffleComponent to use when setting the resulting int4 y component.
z The ShuffleComponent to use when setting the resulting int4 z component.
w The ShuffleComponent to use when setting the resulting int4 w component.

Returns

int4 int4 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two int2 vectors into an int4 vector.


Declaration

public static int shuffle(int3 left, int3 right, ShuffleComponent x);

Parameters

Parameter Description
left int3 to use as the left argument of the shuffle operation.
right int3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting int.

Returns

int int result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two int3 vectors into an int value.


Declaration

public static int2 shuffle(int3 left, int3 right, ShuffleComponent x, ShuffleComponent y);

Parameters

Parameter Description
left int3 to use as the left argument of the shuffle operation.
right int3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting int2 x component.
y The ShuffleComponent to use when setting the resulting int2 y component.

Returns

int2 int2 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two int3 vectors into an int2 vector.


Declaration

public static int3 shuffle(int3 left, int3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z);

Parameters

Parameter Description
left int3 to use as the left argument of the shuffle operation.
right int3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting int3 x component.
y The ShuffleComponent to use when setting the resulting int3 y component.
z The ShuffleComponent to use when setting the resulting int3 z component.

Returns

int3 int3 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two int3 vectors into an int3 vector.


Declaration

public static int4 shuffle(int3 left, int3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w);

Parameters

Parameter Description
left int3 to use as the left argument of the shuffle operation.
right int3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting int4 x component.
y The ShuffleComponent to use when setting the resulting int4 y component.
z The ShuffleComponent to use when setting the resulting int4 z component.
w The ShuffleComponent to use when setting the resulting int4 w component.

Returns

int4 int4 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two int3 vectors into an int4 vector.


Declaration

public static int shuffle(int4 left, int4 right, ShuffleComponent x);

Parameters

Parameter Description
left int4 to use as the left argument of the shuffle operation.
right int4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting int.

Returns

int int result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two int4 vectors into an int value.


Declaration

public static int2 shuffle(int4 left, int4 right, ShuffleComponent x, ShuffleComponent y);

Parameters

Parameter Description
left int4 to use as the left argument of the shuffle operation.
right int4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting int2 x component.
y The ShuffleComponent to use when setting the resulting int2 y component.

Returns

int2 int2 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two int4 vectors into an int2 vector.


Declaration

public static int3 shuffle(int4 left, int4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z);

Parameters

Parameter Description
left int4 to use as the left argument of the shuffle operation.
right int4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting int3 x component.
y The ShuffleComponent to use when setting the resulting int3 y component.
z The ShuffleComponent to use when setting the resulting int3 z component.

Returns

int3 int3 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two int4 vectors into an int3 vector.


Declaration

public static int4 shuffle(int4 left, int4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w);

Parameters

Parameter Description
left int4 to use as the left argument of the shuffle operation.
right int4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting int4 x component.
y The ShuffleComponent to use when setting the resulting int4 y component.
z The ShuffleComponent to use when setting the resulting int4 z component.
w The ShuffleComponent to use when setting the resulting int4 w component.

Returns

int4 int4 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two int4 vectors into an int4 vector.


Declaration

public static uint shuffle(uint2 left, uint2 right, ShuffleComponent x);

Parameters

Parameter Description
left uint2 to use as the left argument of the shuffle operation.
right uint2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting uint.

Returns

uint uint result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two uint2 vectors into a uint value.


Declaration

public static uint2 shuffle(uint2 left, uint2 right, ShuffleComponent x, ShuffleComponent y);

Parameters

Parameter Description
left uint2 to use as the left argument of the shuffle operation.
right uint2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting uint2 x component.
y The ShuffleComponent to use when setting the resulting uint2 y component.

Returns

uint2 uint2 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two uint2 vectors into a uint2 vector.


Declaration

public static uint3 shuffle(uint2 left, uint2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z);

Parameters

Parameter Description
left uint2 to use as the left argument of the shuffle operation.
right uint2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting uint3 x component.
y The ShuffleComponent to use when setting the resulting uint3 y component.
z The ShuffleComponent to use when setting the resulting uint3 z component.

Returns

uint3 uint3 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two uint2 vectors into a uint3 vector.


Declaration

public static uint4 shuffle(uint2 left, uint2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w);

Parameters

Parameter Description
left uint2 to use as the left argument of the shuffle operation.
right uint2 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting uint4 x component.
y The ShuffleComponent to use when setting the resulting uint4 y component.
z The ShuffleComponent to use when setting the resulting uint4 z component.
w The ShuffleComponent to use when setting the resulting uint4 w component.

Returns

uint4 uint4 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two uint2 vectors into a uint4 vector.


Declaration

public static uint shuffle(uint3 left, uint3 right, ShuffleComponent x);

Parameters

Parameter Description
left uint3 to use as the left argument of the shuffle operation.
right uint3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting uint.

Returns

uint uint result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two uint3 vectors into a uint value.


Declaration

public static uint2 shuffle(uint3 left, uint3 right, ShuffleComponent x, ShuffleComponent y);

Parameters

Parameter Description
left uint3 to use as the left argument of the shuffle operation.
right uint3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting uint2 x component.
y The ShuffleComponent to use when setting the resulting uint2 y component.

Returns

uint2 uint2 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two uint3 vectors into a uint2 vector.


Declaration

public static uint3 shuffle(uint3 left, uint3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z);

Parameters

Parameter Description
left uint3 to use as the left argument of the shuffle operation.
right uint3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting uint3 x component.
y The ShuffleComponent to use when setting the resulting uint3 y component.
z The ShuffleComponent to use when setting the resulting uint3 z component.

Returns

uint3 uint3 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two uint3 vectors into a uint3 vector.


Declaration

public static uint4 shuffle(uint3 left, uint3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w);

Parameters

Parameter Description
left uint3 to use as the left argument of the shuffle operation.
right uint3 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting uint4 x component.
y The ShuffleComponent to use when setting the resulting uint4 y component.
z The ShuffleComponent to use when setting the resulting uint4 z component.
w The ShuffleComponent to use when setting the resulting uint4 w component.

Returns

uint4 uint4 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two uint3 vectors into a uint4 vector.


Declaration

public static uint shuffle(uint4 left, uint4 right, ShuffleComponent x);

Parameters

Parameter Description
left uint4 to use as the left argument of the shuffle operation.
right uint4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting uint.

Returns

uint uint result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two uint4 vectors into a uint value.


Declaration

public static uint2 shuffle(uint4 left, uint4 right, ShuffleComponent x, ShuffleComponent y);

Parameters

Parameter Description
left uint4 to use as the left argument of the shuffle operation.
right uint4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting uint2 x component.
y The ShuffleComponent to use when setting the resulting uint2 y component.

Returns

uint2 uint2 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two uint4 vectors into a uint2 vector.


Declaration

public static uint3 shuffle(uint4 left, uint4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z);

Parameters

Parameter Description
left uint4 to use as the left argument of the shuffle operation.
right uint4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting uint3 x component.
y The ShuffleComponent to use when setting the resulting uint3 y component.
z The ShuffleComponent to use when setting the resulting uint3 z component.

Returns

uint3 uint3 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two uint4 vectors into a uint3 vector.


Declaration

public static uint4 shuffle(uint4 left, uint4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w);

Parameters

Parameter Description
left uint4 to use as the left argument of the shuffle operation.
right uint4 to use as the right argument of the shuffle operation.
x The ShuffleComponent to use when setting the resulting uint4 x component.
y The ShuffleComponent to use when setting the resulting uint4 y component.
z The ShuffleComponent to use when setting the resulting uint4 z component.
w The ShuffleComponent to use when setting the resulting uint4 w component.

Returns

uint4 uint4 result of the shuffle operation.

Description

Returns the result of specified shuffling of the components from two uint4 vectors into a uint4 vector.