Table of Contents

Class CudaTextureObject

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Owns a CUDA texture object backed by a managed CUDA array owner. 拥有由托管 CUDA array owner 支撑的 CUDA texture object。

public sealed class CudaTextureObject : IDisposable
Inheritance
CudaTextureObject
Implements
Inherited Members

Constructors

CudaTextureObject(CudaArray)

Creates a texture object with conservative default sampling. 使用保守的默认采样参数创建 texture object。

public CudaTextureObject(CudaArray array)

Parameters

array CudaArray

CudaTextureObject(CudaArray, CudaTextureDescriptor)

Creates a texture object with the standard CUDA descriptor ABI. 使用标准 CUDA descriptor ABI 创建 texture object。

public CudaTextureObject(CudaArray array, CudaTextureDescriptor descriptor)

Parameters

array CudaArray
descriptor CudaTextureDescriptor

Properties

Descriptor

Gets the descriptor through the ABI used to create this texture. 通过创建该 texture 时使用的 ABI 获取 descriptor。

public CudaTextureDescriptor Descriptor { get; }

Property Value

CudaTextureDescriptor

OwnerArray

Gets the managed array owner retained for this texture. 获取此 texture 保留的托管 array owner。

public CudaArray OwnerArray { get; }

Property Value

CudaArray

Resource

Gets a pointer-free resource descriptor snapshot. 获取无指针的 resource descriptor 快照。

public CudaResourceDescriptorSnapshot Resource { get; }

Property Value

CudaResourceDescriptorSnapshot

ResourceView

Gets a copied resource-view descriptor. 获取复制型 resource-view descriptor。

public CudaTextureResourceViewSnapshot ResourceView { get; }

Property Value

CudaTextureResourceViewSnapshot

Methods

CreateCuda11Version2(CudaArray, CudaTextureDescriptor)

Creates a texture object through the CUDA 11.8 v2 descriptor ABI. 通过 CUDA 11.8 v2 descriptor ABI 创建 texture object。

public static CudaTextureObject CreateCuda11Version2(CudaArray array, CudaTextureDescriptor descriptor)

Parameters

array CudaArray
descriptor CudaTextureDescriptor

Returns

CudaTextureObject

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetCuda11Version2Descriptor()

Gets the CUDA 11.8 v2 texture descriptor. 获取 CUDA 11.8 v2 texture descriptor。

public CudaTextureDescriptor GetCuda11Version2Descriptor()

Returns

CudaTextureDescriptor

GetStandardDescriptor()

Gets the standard CUDA texture descriptor. 获取标准 CUDA texture descriptor。

public CudaTextureDescriptor GetStandardDescriptor()

Returns

CudaTextureDescriptor