Class CudaHelperMethods
Helper methods used in the wrapper framework
Inheritance
System.Object
CudaHelperMethods
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ManagedCuda
Assembly: ManagedCuda.dll
Syntax
public static class CudaHelperMethods
Methods
| Improve this Doc View SourceGetChannelSize(CUArrayFormat)
Returns the channel size of an CUDA array in bytes.
Declaration
public static uint GetChannelSize(CUArrayFormat format)
Parameters
Type | Name | Description |
---|---|---|
CUArrayFormat | format | Channel format |
Returns
Type | Description |
---|---|
System.UInt32 | Size in bytes |
GetNumChannels(Type)
Returns the number of channels used in textures depending on the given type.
Declaration
public static int GetNumChannels(Type value)
Parameters
Type | Name | Description |
---|---|---|
System.Type | value | Type |
Returns
Type | Description |
---|---|
System.Int32 | Number of channels |