Struct char4
four signed bytes
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("char4")]
public struct char4
Constructors
char4(char4)
copy constructor
Declaration
public char4(char4 res)
Parameters
Type | Name | Description |
---|---|---|
char4 | res |
char4(Int32)
constructor from signed 32 bits integer
Declaration
public char4(int val)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | val |
char4(SByte)
constructor from single component
Declaration
public char4(sbyte val)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | val |
char4(SByte, SByte, SByte, SByte)
constructor from components
Declaration
public char4(sbyte xx, sbyte yy, sbyte zz, sbyte ww)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | xx | |
System.SByte | yy | |
System.SByte | zz | |
System.SByte | ww |
Fields
w
w
Declaration
public sbyte w
Field Value
Type | Description |
---|---|
System.SByte |
x
x
Declaration
public sbyte x
Field Value
Type | Description |
---|---|
System.SByte |
y
y
Declaration
public sbyte y
Field Value
Type | Description |
---|---|
System.SByte |
z
z
Declaration
public sbyte z
Field Value
Type | Description |
---|---|
System.SByte |
Methods
Load(char4*, Int32)
loads from memory
Declaration
[IntrinsicFunction(IsNaked = true, Name = "__hybridizer_load_char4")]
public static char4 Load(char4*ptr, int alignment)
Parameters
Type | Name | Description |
---|---|---|
char4* | ptr | |
System.Int32 | alignment | has to be a compile time constant |
Returns
Type | Description |
---|---|
char4 |
Store(char4*, char4, Int32)
stores in memory
Declaration
[IntrinsicFunction(IsNaked = true, Name = "__hybridizer_store_char4")]
public static void Store(char4*ptr, char4 val, int alignment)
Parameters
Type | Name | Description |
---|---|---|
char4* | ptr | destination pointer |
char4 | val | value to store |
System.Int32 | alignment | has to be a compile time constant |
Store(char4*, SByte, Int32)
stores in memory
Declaration
[IntrinsicFunction(IsNaked = true, Name = "__hybridizer_store_splat_char4")]
public static void Store(char4*ptr, sbyte val, int alignment)
Parameters
Type | Name | Description |
---|---|---|
char4* | ptr | destination pointer |
System.SByte | val | value to store |
System.Int32 | alignment | has to be a compile time constant |
Operators
Addition(char4, char4)
addition operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator+")]
public static char4 operator +(char4 a, char4 b)
Parameters
Type | Name | Description |
---|---|---|
char4 | a | |
char4 | b |
Returns
Type | Description |
---|---|
char4 |
Addition(char4, SByte)
addition operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator+")]
public static char4 operator +(char4 a, sbyte b)
Parameters
Type | Name | Description |
---|---|---|
char4 | a | |
System.SByte | b |
Returns
Type | Description |
---|---|
char4 |
Addition(SByte, char4)
addition operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator+")]
public static char4 operator +(sbyte a, char4 b)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | a | |
char4 | b |
Returns
Type | Description |
---|---|
char4 |
Division(char4, char4)
division operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator/")]
public static char4 operator /(char4 a, char4 b)
Parameters
Type | Name | Description |
---|---|---|
char4 | a | |
char4 | b |
Returns
Type | Description |
---|---|
char4 |
Division(char4, SByte)
division operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator/")]
public static char4 operator /(char4 a, sbyte b)
Parameters
Type | Name | Description |
---|---|---|
char4 | a | |
System.SByte | b |
Returns
Type | Description |
---|---|
char4 |
Division(SByte, char4)
division operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator/")]
public static char4 operator /(sbyte a, char4 b)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | a | |
char4 | b |
Returns
Type | Description |
---|---|
char4 |
Multiply(char4, char4)
multiplication operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator*")]
public static char4 operator *(char4 a, char4 b)
Parameters
Type | Name | Description |
---|---|---|
char4 | a | |
char4 | b |
Returns
Type | Description |
---|---|
char4 |
Multiply(char4, SByte)
multiplication operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator*")]
public static char4 operator *(char4 a, sbyte b)
Parameters
Type | Name | Description |
---|---|---|
char4 | a | |
System.SByte | b |
Returns
Type | Description |
---|---|
char4 |
Multiply(SByte, char4)
multiplication operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator*")]
public static char4 operator *(sbyte a, char4 b)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | a | |
char4 | b |
Returns
Type | Description |
---|---|
char4 |
Subtraction(char4, char4)
substraction operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator-")]
public static char4 operator -(char4 a, char4 b)
Parameters
Type | Name | Description |
---|---|---|
char4 | a | |
char4 | b |
Returns
Type | Description |
---|---|
char4 |
Subtraction(char4, SByte)
substraction operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator-")]
public static char4 operator -(char4 a, sbyte b)
Parameters
Type | Name | Description |
---|---|---|
char4 | a | |
System.SByte | b |
Returns
Type | Description |
---|---|
char4 |
Subtraction(SByte, char4)
substraction operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator-")]
public static char4 operator -(sbyte a, char4 b)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | a | |
char4 | b |
Returns
Type | Description |
---|---|
char4 |