Show / Hide Table of Contents

Struct float4

4 32 bits floats

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()
Namespace: Hybridizer.Runtime.CUDAImports
Assembly: Hybridizer.Runtime.CUDAImports.dll
Syntax
[IntrinsicType("float4")]
[IntrinsicPrimitive("float4")]
public struct float4

Constructors

float4(float4)

copy constructor

Declaration
public float4(float4 other)
Parameters
Type Name Description
float4 other

float4(Single, Single, Single, Single)

constructor from components

Declaration
public float4(float xx, float yy, float zz, float ww)
Parameters
Type Name Description
System.Single xx
System.Single yy
System.Single zz
System.Single ww

Fields

w

w

Declaration
public float w
Field Value
Type Description
System.Single

x

x

Declaration
public float x
Field Value
Type Description
System.Single

y

y

Declaration
public float y
Field Value
Type Description
System.Single

z

z

Declaration
public float z
Field Value
Type Description
System.Single

Methods

Load(float4*, Int32)

loads from memory

Declaration
[IntrinsicFunction(IsNaked = true, Name = "__hybridizer_load_float4")]
public static float4 Load(float4*ptr, int alignment)
Parameters
Type Name Description
float4* ptr
System.Int32 alignment

has to be a compile time constant

Returns
Type Description
float4

Store(float4*, float4, Int32)

Stores in memory

Declaration
[IntrinsicFunction(IsNaked = true, Name = "__hybridizer_store_float4")]
public static void Store(float4*ptr, float4 val, int alignment)
Parameters
Type Name Description
float4* ptr

destination pointer

float4 val

value to store

System.Int32 alignment

has to be a compile time constant

Operators

Addition(float4, float4)

addition operator

Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator+")]
public static float4 operator +(float4 a, float4 b)
Parameters
Type Name Description
float4 a
float4 b
Returns
Type Description
float4

Addition(float4, Single)

addition operator

Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator+")]
public static float4 operator +(float4 a, float b)
Parameters
Type Name Description
float4 a
System.Single b
Returns
Type Description
float4

Addition(Single, float4)

addition operator

Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator+")]
public static float4 operator +(float a, float4 b)
Parameters
Type Name Description
System.Single a
float4 b
Returns
Type Description
float4

Division(float4, float4)

division operator

Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator/")]
public static float4 operator /(float4 a, float4 b)
Parameters
Type Name Description
float4 a
float4 b
Returns
Type Description
float4

Division(float4, Single)

division operator

Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator/")]
public static float4 operator /(float4 a, float b)
Parameters
Type Name Description
float4 a
System.Single b
Returns
Type Description
float4

Division(Single, float4)

division operator

Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator/")]
public static float4 operator /(float a, float4 b)
Parameters
Type Name Description
System.Single a
float4 b
Returns
Type Description
float4

Multiply(float4, float4)

multiplication operator

Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator*")]
public static float4 operator *(float4 a, float4 b)
Parameters
Type Name Description
float4 a
float4 b
Returns
Type Description
float4

Multiply(float4, Single)

multiplication operator

Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator*")]
public static float4 operator *(float4 a, float b)
Parameters
Type Name Description
float4 a
System.Single b
Returns
Type Description
float4

Multiply(Single, float4)

multiplication operator

Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator*")]
public static float4 operator *(float a, float4 b)
Parameters
Type Name Description
System.Single a
float4 b
Returns
Type Description
float4

Subtraction(float4, float4)

substraction operator

Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator-")]
public static float4 operator -(float4 a, float4 b)
Parameters
Type Name Description
float4 a
float4 b
Returns
Type Description
float4

Subtraction(float4, Single)

substraction operator

Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator-")]
public static float4 operator -(float4 a, float b)
Parameters
Type Name Description
float4 a
System.Single b
Returns
Type Description
float4

Subtraction(Single, float4)

substraction operator

Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator-")]
public static float4 operator -(float a, float4 b)
Parameters
Type Name Description
System.Single a
float4 b
Returns
Type Description
float4
Back to top Generated by DocFX