Show / Hide Table of Contents

    Class CudaTexture

    Provides methods to bind texture references to kernels

    Inheritance
    System.Object
    CudaTexture
    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 CudaTexture

    Methods

    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUAddressMode, CUAddressMode, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, SizeT, SizeT, SizeT, CudaArray3DNumChannels)

    Create a new CudaArray3D and bind it to a texture reference.

    Declaration
    public static CudaArray3D BindTexture(CudaKernel kernel, string texName, CUAddressMode addressMode0, CUAddressMode addressMode1, CUAddressMode addressMode2, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, SizeT width, SizeT height, SizeT depth, CudaArray3DNumChannels numChannels)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressMode0
    CUAddressMode addressMode1
    CUAddressMode addressMode2
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUArrayFormat format
    SizeT width

    In elements

    SizeT height

    In elements

    SizeT depth

    In elements

    CudaArray3DNumChannels numChannels

    1,2 or 4

    Returns
    Type Description
    CudaArray3D
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUAddressMode, CUAddressMode, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUDAArray3DDescriptor, UInt32, UInt32, CUFilterMode, Single, Single, Single)

    Create a new CudaMipmappedArray and bind it to a texture reference.

    Declaration
    public static CudaMipmappedArray BindTexture(CudaKernel kernel, string texName, CUAddressMode addressMode0, CUAddressMode addressMode1, CUAddressMode addressMode2, CUFilterMode filterMode, CUTexRefSetFlags flags, CUDAArray3DDescriptor descriptor, uint numMipmapLevels, uint maxAniso, CUFilterMode mipmapFilterMode, float mipmapLevelBias, float minMipmapLevelClamp, float maxMipmapLevelClamp)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressMode0
    CUAddressMode addressMode1
    CUAddressMode addressMode2
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUDAArray3DDescriptor descriptor
    System.UInt32 numMipmapLevels
    System.UInt32 maxAniso
    CUFilterMode mipmapFilterMode
    System.Single mipmapLevelBias
    System.Single minMipmapLevelClamp
    System.Single maxMipmapLevelClamp
    Returns
    Type Description
    CudaMipmappedArray
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUAddressMode, CUAddressMode, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CudaArray3D)

    Bind a CudaArray3D to a texture reference.

    Declaration
    public static void BindTexture(CudaKernel kernel, string texName, CUAddressMode addressMode0, CUAddressMode addressMode1, CUAddressMode addressMode2, CUFilterMode filterMode, CUTexRefSetFlags flags, CudaArray3D array)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressMode0
    CUAddressMode addressMode1
    CUAddressMode addressMode2
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CudaArray3D array
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUAddressMode, CUAddressMode, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CudaMipmappedArray, UInt32, CUFilterMode, Single, Single, Single)

    Bind a CudaMipmappedArray to a texture reference.

    Declaration
    public static void BindTexture(CudaKernel kernel, string texName, CUAddressMode addressMode0, CUAddressMode addressMode1, CUAddressMode addressMode2, CUFilterMode filterMode, CUTexRefSetFlags flags, CudaMipmappedArray array, uint maxAniso, CUFilterMode mipmapFilterMode, float mipmapLevelBias, float minMipmapLevelClamp, float maxMipmapLevelClamp)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressMode0
    CUAddressMode addressMode1
    CUAddressMode addressMode2
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CudaMipmappedArray array
    System.UInt32 maxAniso
    CUFilterMode mipmapFilterMode
    System.Single mipmapLevelBias
    System.Single minMipmapLevelClamp
    System.Single maxMipmapLevelClamp
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUAddressMode, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, SizeT, SizeT, CudaArray2DNumChannels)

    Create a new CudaArray2D and bind it to a texture reference.

    Declaration
    public static CudaArray2D BindTexture(CudaKernel kernel, string texName, CUAddressMode addressMode0, CUAddressMode addressMode1, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, SizeT width, SizeT height, CudaArray2DNumChannels numChannels)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressMode0
    CUAddressMode addressMode1
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUArrayFormat format
    SizeT width

    In elements

    SizeT height

    In elements

    CudaArray2DNumChannels numChannels

    1,2 or 4

    Returns
    Type Description
    CudaArray2D
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUAddressMode, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CudaArray2D)

    Bind a CudaArray2D to a texture reference.

    Declaration
    public static void BindTexture(CudaKernel kernel, string texName, CUAddressMode addressMode0, CUAddressMode addressMode1, CUFilterMode filterMode, CUTexRefSetFlags flags, CudaArray2D array)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressMode0
    CUAddressMode addressMode1
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CudaArray2D array
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, SizeT, SizeT, SizeT, CudaArray3DNumChannels)

    Create a new CudaArray3D and bind it to a texture reference.

    Declaration
    public static CudaArray3D BindTexture(CudaKernel kernel, string texName, CUAddressMode addressModeForAllDimensions, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, SizeT width, SizeT height, SizeT depth, CudaArray3DNumChannels numChannels)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressModeForAllDimensions
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUArrayFormat format
    SizeT width

    In elements

    SizeT height

    In elements

    SizeT depth

    In elements

    CudaArray3DNumChannels numChannels

    1,2 or 4

    Returns
    Type Description
    CudaArray3D
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, SizeT, SizeT, CudaArray2DNumChannels)

    Create a new CudaArray2D and bind it to a texture reference.

    Declaration
    public static CudaArray2D BindTexture(CudaKernel kernel, string texName, CUAddressMode addressMode, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, SizeT width, SizeT height, CudaArray2DNumChannels numChannels)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressMode
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUArrayFormat format
    SizeT width

    In elements

    SizeT height

    In elements

    CudaArray2DNumChannels numChannels

    1,2 or 4

    Returns
    Type Description
    CudaArray2D
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, SizeT, CudaArray1DNumChannels)

    Create a new CudaArray1D and bind it to a texture reference.

    Declaration
    public static CudaArray1D BindTexture(CudaKernel kernel, string texName, CUAddressMode addressMode, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, SizeT size, CudaArray1DNumChannels numChannels)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressMode
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUArrayFormat format
    SizeT size

    In elements

    CudaArray1DNumChannels numChannels
    Returns
    Type Description
    CudaArray1D
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUDAArray3DDescriptor, UInt32, UInt32, CUFilterMode, Single, Single, Single)

    Create a new CudaMipmappedArray and bind it to a texture reference.

    Declaration
    public static CudaMipmappedArray BindTexture(CudaKernel kernel, string texName, CUAddressMode addressModeForAllDimensions, CUFilterMode filterMode, CUTexRefSetFlags flags, CUDAArray3DDescriptor descriptor, uint numMipmapLevels, uint maxAniso, CUFilterMode mipmapFilterMode, float mipmapLevelBias, float minMipmapLevelClamp, float maxMipmapLevelClamp)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressModeForAllDimensions
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUDAArray3DDescriptor descriptor
    System.UInt32 numMipmapLevels
    System.UInt32 maxAniso
    CUFilterMode mipmapFilterMode
    System.Single mipmapLevelBias
    System.Single minMipmapLevelClamp
    System.Single maxMipmapLevelClamp
    Returns
    Type Description
    CudaMipmappedArray
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CudaArray1D)

    Bind a CudaArray1D to a texture reference.

    Declaration
    public static void BindTexture(CudaKernel kernel, string texName, CUAddressMode addressMode, CUFilterMode filterMode, CUTexRefSetFlags flags, CudaArray1D array)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressMode
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CudaArray1D array
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CudaArray2D)

    Bind a CudaArray2D to a texture reference.

    Declaration
    public static void BindTexture(CudaKernel kernel, string texName, CUAddressMode addressMode, CUFilterMode filterMode, CUTexRefSetFlags flags, CudaArray2D array)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressMode
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CudaArray2D array
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CudaArray3D)

    Bind a CudaArray3D to a texture reference.

    Declaration
    public static void BindTexture(CudaKernel kernel, string texName, CUAddressMode addressModeForAllDimensions, CUFilterMode filterMode, CUTexRefSetFlags flags, CudaArray3D array)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressModeForAllDimensions
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CudaArray3D array
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CudaMipmappedArray, UInt32, CUFilterMode, Single, Single, Single)

    Bind a CudaMipmappedArray to a texture reference.

    Declaration
    public static void BindTexture(CudaKernel kernel, string texName, CUAddressMode addressModeForAllDimensions, CUFilterMode filterMode, CUTexRefSetFlags flags, CudaMipmappedArray array, uint maxAniso, CUFilterMode mipmapFilterMode, float mipmapLevelBias, float minMipmapLevelClamp, float maxMipmapLevelClamp)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressModeForAllDimensions
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CudaMipmappedArray array
    System.UInt32 maxAniso
    CUFilterMode mipmapFilterMode
    System.Single mipmapLevelBias
    System.Single minMipmapLevelClamp
    System.Single maxMipmapLevelClamp
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, SizeT, SizeT, SizeT, CudaArray3DNumChannels, Single[])

    Create a new CudaArray3D and bind it to a texture reference. Sets the border color for the texture reference

    Specifies the value of the RGBA color via the \p pBorderColor to the texture reference \p hTexRef. The color value supports only float type and holds color components in the following sequence:

    pBorderColor[0] holds 'R' component

    pBorderColor[1] holds 'G' component

    pBorderColor[2] holds 'B' component

    pBorderColor[3] holds 'A' component

    addressMode is set to CU_TR_ADDRESS_MODE_BORDER

    Declaration
    public static CudaArray3D BindTexture(CudaKernel kernel, string texName, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, SizeT width, SizeT height, SizeT depth, CudaArray3DNumChannels numChannels, float[] borderColor)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUArrayFormat format
    SizeT width

    In elements

    SizeT height

    In elements

    SizeT depth

    In elements

    CudaArray3DNumChannels numChannels

    1,2 or 4

    System.Single[] borderColor

    RGBA color

    Returns
    Type Description
    CudaArray3D
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, SizeT, SizeT, CudaArray2DNumChannels, Single[])

    Create a new CudaArray2D and bind it to a texture reference. Sets the border color for the texture reference

    Specifies the value of the RGBA color via the \p pBorderColor to the texture reference \p hTexRef. The color value supports only float type and holds color components in the following sequence:

    pBorderColor[0] holds 'R' component

    pBorderColor[1] holds 'G' component

    pBorderColor[2] holds 'B' component

    pBorderColor[3] holds 'A' component

    addressMode is set to CU_TR_ADDRESS_MODE_BORDER

    Declaration
    public static CudaArray2D BindTexture(CudaKernel kernel, string texName, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, SizeT width, SizeT height, CudaArray2DNumChannels numChannels, float[] borderColor)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUArrayFormat format
    SizeT width

    In elements

    SizeT height

    In elements

    CudaArray2DNumChannels numChannels

    1,2 or 4

    System.Single[] borderColor

    RGBA color

    Returns
    Type Description
    CudaArray2D
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, SizeT, CudaArray1DNumChannels, Single[])

    Create a new CudaArray1D and bind it to a texture reference. Sets the border color for the texture reference

    Specifies the value of the RGBA color via the \p pBorderColor to the texture reference \p hTexRef. The color value supports only float type and holds color components in the following sequence:

    pBorderColor[0] holds 'R' component

    pBorderColor[1] holds 'G' component

    pBorderColor[2] holds 'B' component

    pBorderColor[3] holds 'A' component

    addressMode is set to CU_TR_ADDRESS_MODE_BORDER

    Declaration
    public static CudaArray1D BindTexture(CudaKernel kernel, string texName, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, SizeT size, CudaArray1DNumChannels numChannels, float[] borderColor)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUArrayFormat format
    SizeT size

    In elements

    CudaArray1DNumChannels numChannels
    System.Single[] borderColor

    RGBA color

    Returns
    Type Description
    CudaArray1D
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUFilterMode, CUTexRefSetFlags, CUDAArray3DDescriptor, UInt32, UInt32, CUFilterMode, Single, Single, Single, Single[])

    Create a new CudaMipmappedArray and bind it to a texture reference. Sets the border color for the texture reference

    Specifies the value of the RGBA color via the \p pBorderColor to the texture reference \p hTexRef. The color value supports only float type and holds color components in the following sequence:

    pBorderColor[0] holds 'R' component

    pBorderColor[1] holds 'G' component

    pBorderColor[2] holds 'B' component

    pBorderColor[3] holds 'A' component

    addressMode is set to CU_TR_ADDRESS_MODE_BORDER

    Declaration
    public static CudaMipmappedArray BindTexture(CudaKernel kernel, string texName, CUFilterMode filterMode, CUTexRefSetFlags flags, CUDAArray3DDescriptor descriptor, uint numMipmapLevels, uint maxAniso, CUFilterMode mipmapFilterMode, float mipmapLevelBias, float minMipmapLevelClamp, float maxMipmapLevelClamp, float[] borderColor)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUDAArray3DDescriptor descriptor
    System.UInt32 numMipmapLevels
    System.UInt32 maxAniso
    CUFilterMode mipmapFilterMode
    System.Single mipmapLevelBias
    System.Single minMipmapLevelClamp
    System.Single maxMipmapLevelClamp
    System.Single[] borderColor

    RGBA color

    Returns
    Type Description
    CudaMipmappedArray
    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUFilterMode, CUTexRefSetFlags, CudaArray1D, Single[])

    Bind a CudaArray1D to a texture reference. Sets the border color for the texture reference

    Specifies the value of the RGBA color via the \p pBorderColor to the texture reference \p hTexRef. The color value supports only float type and holds color components in the following sequence:

    pBorderColor[0] holds 'R' component

    pBorderColor[1] holds 'G' component

    pBorderColor[2] holds 'B' component

    pBorderColor[3] holds 'A' component

    addressMode is set to CU_TR_ADDRESS_MODE_BORDER

    Declaration
    public static void BindTexture(CudaKernel kernel, string texName, CUFilterMode filterMode, CUTexRefSetFlags flags, CudaArray1D array, float[] borderColor)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CudaArray1D array
    System.Single[] borderColor

    RGBA color

    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUFilterMode, CUTexRefSetFlags, CudaArray2D, Single[])

    Bind a CudaArray2D to a texture reference. Sets the border color for the texture reference

    Specifies the value of the RGBA color via the \p pBorderColor to the texture reference \p hTexRef. The color value supports only float type and holds color components in the following sequence:

    pBorderColor[0] holds 'R' component

    pBorderColor[1] holds 'G' component

    pBorderColor[2] holds 'B' component

    pBorderColor[3] holds 'A' component

    addressMode is set to CU_TR_ADDRESS_MODE_BORDER

    Declaration
    public static void BindTexture(CudaKernel kernel, string texName, CUFilterMode filterMode, CUTexRefSetFlags flags, CudaArray2D array, float[] borderColor)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CudaArray2D array
    System.Single[] borderColor

    RGBA color

    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUFilterMode, CUTexRefSetFlags, CudaArray3D, Single[])

    Bind a CudaArray3D to a texture reference. Sets the border color for the texture reference

    Specifies the value of the RGBA color via the \p pBorderColor to the texture reference \p hTexRef. The color value supports only float type and holds color components in the following sequence:

    pBorderColor[0] holds 'R' component

    pBorderColor[1] holds 'G' component

    pBorderColor[2] holds 'B' component

    pBorderColor[3] holds 'A' component

    addressMode is set to CU_TR_ADDRESS_MODE_BORDER

    Declaration
    public static void BindTexture(CudaKernel kernel, string texName, CUFilterMode filterMode, CUTexRefSetFlags flags, CudaArray3D array, float[] borderColor)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CudaArray3D array
    System.Single[] borderColor

    RGBA color

    | Improve this Doc View Source

    BindTexture(CudaKernel, String, CUFilterMode, CUTexRefSetFlags, CudaMipmappedArray, UInt32, CUFilterMode, Single, Single, Single, Single[])

    Bind a CudaMipmappedArray to a texture reference. Sets the border color for the texture reference

    Specifies the value of the RGBA color via the \p pBorderColor to the texture reference \p hTexRef. The color value supports only float type and holds color components in the following sequence:

    pBorderColor[0] holds 'R' component

    pBorderColor[1] holds 'G' component

    pBorderColor[2] holds 'B' component

    pBorderColor[3] holds 'A' component

    addressMode is set to CU_TR_ADDRESS_MODE_BORDER

    Declaration
    public static void BindTexture(CudaKernel kernel, string texName, CUFilterMode filterMode, CUTexRefSetFlags flags, CudaMipmappedArray array, uint maxAniso, CUFilterMode mipmapFilterMode, float mipmapLevelBias, float minMipmapLevelClamp, float maxMipmapLevelClamp, float[] borderColor)
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CudaMipmappedArray array
    System.UInt32 maxAniso
    CUFilterMode mipmapFilterMode
    System.Single mipmapLevelBias
    System.Single minMipmapLevelClamp
    System.Single maxMipmapLevelClamp
    System.Single[] borderColor

    RGBA color

    | Improve this Doc View Source

    BindTexture<T>(CudaKernel, String, CUAddressMode, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, SizeT, SizeT)

    Create a new CudaPitchedDeviceVariable and bind it to a texture reference.

    Declaration
    public static CudaPitchedDeviceVariable<T> BindTexture<T>(CudaKernel kernel, string texName, CUAddressMode addressMode0, CUAddressMode addressMode1, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, SizeT width, SizeT height)
        where T : struct
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressMode0
    CUAddressMode addressMode1
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUArrayFormat format
    SizeT width

    In elements

    SizeT height

    In elements

    Returns
    Type Description
    CudaPitchedDeviceVariable<T>
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    BindTexture<T>(CudaKernel, String, CUAddressMode, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, CudaPitchedDeviceVariable<T>)

    Bind a CudaPitchedDeviceVariable to a texture reference.

    Declaration
    public static void BindTexture<T>(CudaKernel kernel, string texName, CUAddressMode addressMode0, CUAddressMode addressMode1, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, CudaPitchedDeviceVariable<T> deviceVar)
        where T : struct
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressMode0
    CUAddressMode addressMode1
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUArrayFormat format
    CudaPitchedDeviceVariable<T> deviceVar
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    BindTexture<T>(CudaKernel, String, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, SizeT, SizeT)

    Create a new CudaPitchedDeviceVariable and bind it to a texture reference.

    Declaration
    public static CudaPitchedDeviceVariable<T> BindTexture<T>(CudaKernel kernel, string texName, CUAddressMode addressMode, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, SizeT width, SizeT height)
        where T : struct
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressMode
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUArrayFormat format
    SizeT width

    In elements

    SizeT height

    In elements

    Returns
    Type Description
    CudaPitchedDeviceVariable<T>
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    BindTexture<T>(CudaKernel, String, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, CudaPitchedDeviceVariable<T>)

    Bind a CudaPitchedDeviceVariable to a texture reference.

    Declaration
    public static void BindTexture<T>(CudaKernel kernel, string texName, CUAddressMode addressMode, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, CudaPitchedDeviceVariable<T> deviceVar)
        where T : struct
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressMode
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUArrayFormat format
    CudaPitchedDeviceVariable<T> deviceVar
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    BindTexture<T>(CudaKernel, String, CUAddressMode, CUTexRefSetFlags, CUArrayFormat, CudaDeviceVariable<T>)

    Bind a CudaDeviceVariable to a texture reference.

    Declaration
    public static void BindTexture<T>(CudaKernel kernel, string texName, CUAddressMode addressMode0, CUTexRefSetFlags flags, CUArrayFormat format, CudaDeviceVariable<T> deviceVar)
        where T : struct
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUAddressMode addressMode0
    CUTexRefSetFlags flags
    CUArrayFormat format
    CudaDeviceVariable<T> deviceVar
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    BindTexture<T>(CudaKernel, String, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, SizeT, SizeT, Single[])

    Create a new CudaPitchedDeviceVariable and bind it to a texture reference. Sets the border color for the texture reference

    Specifies the value of the RGBA color via the \p pBorderColor to the texture reference \p hTexRef. The color value supports only float type and holds color components in the following sequence:

    pBorderColor[0] holds 'R' component

    pBorderColor[1] holds 'G' component

    pBorderColor[2] holds 'B' component

    pBorderColor[3] holds 'A' component

    addressMode is set to CU_TR_ADDRESS_MODE_BORDER

    Declaration
    public static CudaPitchedDeviceVariable<T> BindTexture<T>(CudaKernel kernel, string texName, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, SizeT width, SizeT height, float[] borderColor)
        where T : struct
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUArrayFormat format
    SizeT width

    In elements

    SizeT height

    In elements

    System.Single[] borderColor

    RGBA color

    Returns
    Type Description
    CudaPitchedDeviceVariable<T>
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    BindTexture<T>(CudaKernel, String, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, CudaPitchedDeviceVariable<T>, Single[])

    Bind a CudaPitchedDeviceVariable to a texture reference. Sets the border color for the texture reference

    Specifies the value of the RGBA color via the \p pBorderColor to the texture reference \p hTexRef. The color value supports only float type and holds color components in the following sequence:

    pBorderColor[0] holds 'R' component

    pBorderColor[1] holds 'G' component

    pBorderColor[2] holds 'B' component

    pBorderColor[3] holds 'A' component

    addressMode is set to CU_TR_ADDRESS_MODE_BORDER

    Declaration
    public static void BindTexture<T>(CudaKernel kernel, string texName, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, CudaPitchedDeviceVariable<T> deviceVar, float[] borderColor)
        where T : struct
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUFilterMode filterMode
    CUTexRefSetFlags flags
    CUArrayFormat format
    CudaPitchedDeviceVariable<T> deviceVar
    System.Single[] borderColor

    RGBA color

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    BindTexture<T>(CudaKernel, String, CUTexRefSetFlags, CUAddressMode, CUArrayFormat, SizeT)

    Create a new CudaDeviceVariable and bind it to a texture reference.

    Declaration
    public static CudaDeviceVariable<T> BindTexture<T>(CudaKernel kernel, string texName, CUTexRefSetFlags flags, CUAddressMode addressMode0, CUArrayFormat format, SizeT size)
        where T : struct
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUTexRefSetFlags flags
    CUAddressMode addressMode0
    CUArrayFormat format
    SizeT size

    In elements

    Returns
    Type Description
    CudaDeviceVariable<T>
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    BindTexture<T>(CudaKernel, String, CUTexRefSetFlags, CUArrayFormat, SizeT, Single[])

    Create a new CudaDeviceVariable and bind it to a texture reference. Sets the border color for the texture reference

    Specifies the value of the RGBA color via the \p pBorderColor to the texture reference \p hTexRef. The color value supports only float type and holds color components in the following sequence:

    pBorderColor[0] holds 'R' component

    pBorderColor[1] holds 'G' component

    pBorderColor[2] holds 'B' component

    pBorderColor[3] holds 'A' component

    addressMode is set to CU_TR_ADDRESS_MODE_BORDER

    Declaration
    public static CudaDeviceVariable<T> BindTexture<T>(CudaKernel kernel, string texName, CUTexRefSetFlags flags, CUArrayFormat format, SizeT size, float[] borderColor)
        where T : struct
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUTexRefSetFlags flags
    CUArrayFormat format
    SizeT size

    In elements

    System.Single[] borderColor

    RGBA color

    Returns
    Type Description
    CudaDeviceVariable<T>
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    BindTexture<T>(CudaKernel, String, CUTexRefSetFlags, CUArrayFormat, CudaDeviceVariable<T>, Single[])

    Bind a CudaDeviceVariable to a texture reference. Sets the border color for the texture reference

    Specifies the value of the RGBA color via the \p pBorderColor to the texture reference \p hTexRef. The color value supports only float type and holds color components in the following sequence:

    pBorderColor[0] holds 'R' component

    pBorderColor[1] holds 'G' component

    pBorderColor[2] holds 'B' component

    pBorderColor[3] holds 'A' component

    addressMode is set to CU_TR_ADDRESS_MODE_BORDER

    Declaration
    public static void BindTexture<T>(CudaKernel kernel, string texName, CUTexRefSetFlags flags, CUArrayFormat format, CudaDeviceVariable<T> deviceVar, float[] borderColor)
        where T : struct
    Parameters
    Type Name Description
    CudaKernel kernel
    System.String texName
    CUTexRefSetFlags flags
    CUArrayFormat format
    CudaDeviceVariable<T> deviceVar
    System.Single[] borderColor

    RGBA color

    Type Parameters
    Name Description
    T
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX