Struct short4
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Assembly: Hybridizer.Runtime.CUDAImports.dll
Syntax
[IntrinsicType("short4")]
public struct short4
Constructors
short4(short4)
Declaration
public short4(short4 res)
Parameters
Type |
Name |
Description |
short4 |
res |
|
short4(Int16)
constructor from single component
Declaration
Parameters
Type |
Name |
Description |
System.Int16 |
val |
|
short4(Int16, Int16, Int16, Int16)
constructor from components
Declaration
public short4(short xx, short yy, short zz, short ww)
Parameters
Type |
Name |
Description |
System.Int16 |
xx |
|
System.Int16 |
yy |
|
System.Int16 |
zz |
|
System.Int16 |
ww |
|
Fields
w
Declaration
Field Value
Type |
Description |
System.Int16 |
|
x
Declaration
Field Value
Type |
Description |
System.Int16 |
|
y
Declaration
Field Value
Type |
Description |
System.Int16 |
|
z
Declaration
Field Value
Type |
Description |
System.Int16 |
|
Methods
Load(short4*, Int32)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "__hybridizer_load_short4")]
public static short4 Load(short4*ptr, int alignment)
Parameters
Type |
Name |
Description |
short4* |
ptr |
|
System.Int32 |
alignment |
has to be a compile time constant
|
Returns
Store(short4*, short4, Int32)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "__hybridizer_store_short4")]
public static void Store(short4*ptr, short4 val, int alignment)
Parameters
Type |
Name |
Description |
short4* |
ptr |
destination pointer
|
short4 |
val |
value to store
|
System.Int32 |
alignment |
has to be a compile time constant
|
Operators
Addition(short4, short4)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator+")]
public static short4 operator +(short4 a, short4 b)
Parameters
Returns
Addition(short4, Int16)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator+")]
public static short4 operator +(short4 a, short b)
Parameters
Type |
Name |
Description |
short4 |
a |
|
System.Int16 |
b |
|
Returns
Addition(Int16, short4)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator+")]
public static short4 operator +(short a, short4 b)
Parameters
Type |
Name |
Description |
System.Int16 |
a |
|
short4 |
b |
|
Returns
Division(short4, short4)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator/")]
public static short4 operator /(short4 a, short4 b)
Parameters
Returns
Division(short4, Int16)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator/")]
public static short4 operator /(short4 a, short b)
Parameters
Type |
Name |
Description |
short4 |
a |
|
System.Int16 |
b |
|
Returns
Division(Int16, short4)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator/")]
public static short4 operator /(short a, short4 b)
Parameters
Type |
Name |
Description |
System.Int16 |
a |
|
short4 |
b |
|
Returns
Multiply(short4, short4)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator*")]
public static short4 operator *(short4 a, short4 b)
Parameters
Returns
Multiply(short4, Int16)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator*")]
public static short4 operator *(short4 a, short b)
Parameters
Type |
Name |
Description |
short4 |
a |
|
System.Int16 |
b |
|
Returns
Multiply(Int16, short4)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator*")]
public static short4 operator *(short a, short4 b)
Parameters
Type |
Name |
Description |
System.Int16 |
a |
|
short4 |
b |
|
Returns
Subtraction(short4, short4)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator-")]
public static short4 operator -(short4 a, short4 b)
Parameters
Returns
Subtraction(short4, Int16)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator-")]
public static short4 operator -(short4 a, short b)
Parameters
Type |
Name |
Description |
short4 |
a |
|
System.Int16 |
b |
|
Returns
Subtraction(Int16, short4)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator-")]
public static short4 operator -(short a, short4 b)
Parameters
Type |
Name |
Description |
System.Int16 |
a |
|
short4 |
b |
|
Returns