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