Class CudaTexObject
Cuda Texure Object
Inheritance
Implements
Inherited Members
Namespace: ManagedCuda
Assembly: ManagedCuda.dll
Syntax
public class CudaTexObject : IDisposable
Constructors
| Improve this Doc View SourceCudaTexObject(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 |
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 SourceResourceDesc
Returns the CudaResourceDesc used to create the CudaTexObject
Declaration
public CudaResourceDesc ResourceDesc { get; }
Property Value
Type | Description |
---|---|
CudaResourceDesc |
ResourceViewDesc
Returns the CudaResourceViewDesc used to create the CudaTexObject
Declaration
public CudaResourceViewDesc ResourceViewDesc { get; }
Property Value
Type | Description |
---|---|
CudaResourceViewDesc |
TexObject
Returns the wrapped CUtexObject
Declaration
public CUtexObject TexObject { get; }
Property Value
Type | Description |
---|---|
CUtexObject |
TextureDescriptor
Returns the CudaTextureDescriptor used to create the CudaTexObject
Declaration
public CudaTextureDescriptor TextureDescriptor { get; }
Property Value
Type | Description |
---|---|
CudaTextureDescriptor |
Methods
| Improve this Doc View SourceDispose()
Dispose
Declaration
public void Dispose()
Dispose(Boolean)
For IDisposable
Declaration
protected virtual void Dispose(bool fDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | fDisposing |
Finalize()
For dispose
Declaration
protected void Finalize()