Struct float2
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("float2")]
public struct float2
Constructors
float2(int2)
Declaration
Parameters
Type |
Name |
Description |
int2 |
val |
|
float2(Single, Single)
constructor from 2 individual 32 bits floats
Declaration
public float2(float xx, float yy)
Parameters
Type |
Name |
Description |
System.Single |
xx |
|
System.Single |
yy |
|
Fields
x
Declaration
Field Value
Type |
Description |
System.Single |
|
y
Declaration
Field Value
Type |
Description |
System.Single |
|
Methods
Load(float2*, Int32)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "__hybridizer_load_float2")]
public static float2 Load(float2*ptr, int alignment)
Parameters
Type |
Name |
Description |
float2* |
ptr |
|
System.Int32 |
alignment |
has to be a compile time constant
|
Returns
Store(float2*, float2, Int32)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "__hybridizer_store_float2")]
public static void Store(float2*ptr, float2 val, int alignment)
Parameters
Type |
Name |
Description |
float2* |
ptr |
destination pointer
|
float2 |
val |
value to store
|
System.Int32 |
alignment |
has to be a compile time constant
|
Operators
Addition(float2, float2)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator+")]
public static float2 operator +(float2 a, float2 b)
Parameters
Returns
Addition(float2, Single)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator+")]
public static float2 operator +(float2 a, float b)
Parameters
Type |
Name |
Description |
float2 |
a |
|
System.Single |
b |
|
Returns
Addition(Single, float2)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator+")]
public static float2 operator +(float a, float2 b)
Parameters
Type |
Name |
Description |
System.Single |
a |
|
float2 |
b |
|
Returns
Division(float2, float2)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator/")]
public static float2 operator /(float2 a, float2 b)
Parameters
Returns
Division(float2, Single)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator/")]
public static float2 operator /(float2 a, float b)
Parameters
Type |
Name |
Description |
float2 |
a |
|
System.Single |
b |
|
Returns
Division(Single, float2)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator/")]
public static float2 operator /(float a, float2 b)
Parameters
Type |
Name |
Description |
System.Single |
a |
|
float2 |
b |
|
Returns
Explicit(float2 to char8)
Declaration
public static explicit operator char8(float2 res)
Parameters
Type |
Name |
Description |
float2 |
res |
|
Returns
Explicit(float2 to int2)
Declaration
public static explicit operator int2(float2 res)
Parameters
Type |
Name |
Description |
float2 |
res |
|
Returns
Explicit(float2 to short4)
Declaration
public static explicit operator short4(float2 res)
Parameters
Type |
Name |
Description |
float2 |
res |
|
Returns
Explicit(float2 to Double)
Declaration
public static explicit operator double (float2 res)
Parameters
Type |
Name |
Description |
float2 |
res |
|
Returns
Type |
Description |
System.Double |
|
Explicit(float2 to Int64)
conversion to signed 64 bits integer
Declaration
public static explicit operator long (float2 res)
Parameters
Type |
Name |
Description |
float2 |
res |
|
Returns
Type |
Description |
System.Int64 |
|
Multiply(float2, float2)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator*")]
public static float2 operator *(float2 a, float2 b)
Parameters
Returns
Multiply(float2, Single)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator*")]
public static float2 operator *(float2 a, float b)
Parameters
Type |
Name |
Description |
float2 |
a |
|
System.Single |
b |
|
Returns
Multiply(Single, float2)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator*")]
public static float2 operator *(float a, float2 b)
Parameters
Type |
Name |
Description |
System.Single |
a |
|
float2 |
b |
|
Returns
Subtraction(float2, float2)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator-")]
public static float2 operator -(float2 a, float2 b)
Parameters
Returns
Subtraction(float2, Single)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator-")]
public static float2 operator -(float2 a, float b)
Parameters
Type |
Name |
Description |
float2 |
a |
|
System.Single |
b |
|
Returns
Subtraction(Single, float2)
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator-")]
public static float2 operator -(float a, float2 b)
Parameters
Type |
Name |
Description |
System.Single |
a |
|
float2 |
b |
|
Returns