Show / Hide Table of Contents

    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 Source

    GetChannelSize(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

    | Improve this Doc View Source

    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

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX