Show / Hide Table of Contents

    Class CudaTexObject

    Cuda Texure Object

    Inheritance
    System.Object
    CudaTexObject
    Implements
    System.IDisposable
    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 class CudaTexObject : IDisposable

    Constructors

    | Improve this Doc View Source

    CudaTexObject(CudaResourceDesc, CudaTextureDescriptor)

    Creates a texture object and returns it in pTexObject. pResDesc describes the data to texture from. pTexDesc describes how the data should be sampled.

    Declaration
    public CudaTexObject(CudaResourceDesc resDesc, CudaTextureDescriptor texDesc)
    Parameters
    Type Name Description
    CudaResourceDesc resDesc

    CudaResourceDesc

    CudaTextureDescriptor texDesc

    CudaTextureDescriptor

    | Improve this Doc View Source

    CudaTexObject(CudaResourceDesc, CudaTextureDescriptor, CudaResourceViewDesc)

    Creates a texture object. ResDesc describes the data to texture from. TexDesc describes how the data should be sampled. resViewDesc is an optional argument that specifies an alternate format for the data described by pResDesc, and also describes the subresource region to restrict access to when texturing. pResViewDesc can only be specified if the type of resource is a CUDA array or a CUDA mipmapped array.

    Declaration
    public CudaTexObject(CudaResourceDesc resDesc, CudaTextureDescriptor texDesc, CudaResourceViewDesc resViewDesc)
    Parameters
    Type Name Description
    CudaResourceDesc resDesc

    Describes the data to texture from.

    CudaTextureDescriptor texDesc

    Describes how the data should be sampled.

    CudaResourceViewDesc resViewDesc

    CudaResourceViewDesc. Only valid if type of resource is a CUDA array or a CUDA mipmapped array

    Properties

    | Improve this Doc View Source

    ResourceDesc

    Returns the CudaResourceDesc used to create the CudaTexObject

    Declaration
    public CudaResourceDesc ResourceDesc { get; }
    Property Value
    Type Description
    CudaResourceDesc
    | Improve this Doc View Source

    ResourceViewDesc

    Returns the CudaResourceViewDesc used to create the CudaTexObject

    Declaration
    public CudaResourceViewDesc ResourceViewDesc { get; }
    Property Value
    Type Description
    CudaResourceViewDesc
    | Improve this Doc View Source

    TexObject

    Returns the wrapped CUtexObject

    Declaration
    public CUtexObject TexObject { get; }
    Property Value
    Type Description
    CUtexObject
    | Improve this Doc View Source

    TextureDescriptor

    Returns the CudaTextureDescriptor used to create the CudaTexObject

    Declaration
    public CudaTextureDescriptor TextureDescriptor { get; }
    Property Value
    Type Description
    CudaTextureDescriptor

    Methods

    | Improve this Doc View Source

    Dispose()

    Dispose

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Dispose(Boolean)

    For IDisposable

    Declaration
    protected virtual void Dispose(bool fDisposing)
    Parameters
    Type Name Description
    System.Boolean fDisposing
    | Improve this Doc View Source

    Finalize()

    For dispose

    Declaration
    protected void Finalize()

    Implements

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