Class CudaTextureArray2D
CudaArrayTexture2D
Inheritance
System.Object
CudaTextureArray2D
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 CudaTextureArray2D : IDisposable
Constructors
| Improve this Doc View SourceCudaTextureArray2D(CudaKernel, String, CUAddressMode, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, SizeT, SizeT, CudaArray2DNumChannels)
Creates a new 2D texture from array memory. Allocates a new 2D array.
Declaration
public CudaTextureArray2D(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 |
CudaTextureArray2D(CudaKernel, String, CUAddressMode, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CudaArray2D)
Creates a new 2D texture from array memory
Declaration
public CudaTextureArray2D(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 |
CudaTextureArray2D(CudaKernel, String, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, SizeT, SizeT, CudaArray2DNumChannels)
Creates a new 2D texture from array memory. Allocates a new 2D array.
Declaration
public CudaTextureArray2D(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 |
CudaTextureArray2D(CudaKernel, String, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CudaArray2D)
Creates a new 2D texture from array memory
Declaration
public CudaTextureArray2D(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 |
Properties
| Improve this Doc View SourceAddressMode0
AddressMode
Declaration
public CUAddressMode AddressMode0 { get; }
Property Value
Type | Description |
---|---|
CUAddressMode |
AddressMode1
AddressMode
Declaration
public CUAddressMode AddressMode1 { get; }
Property Value
Type | Description |
---|---|
CUAddressMode |
Array
Array
Declaration
public CudaArray2D Array { get; }
Property Value
Type | Description |
---|---|
CudaArray2D |
ChannelSize
ChannelSize
Declaration
public uint ChannelSize { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
CUFuntion
CUFuntion
Declaration
public CUfunction CUFuntion { get; }
Property Value
Type | Description |
---|---|
CUfunction |
Filtermode
Format
Declaration
public CUFilterMode Filtermode { get; }
Property Value
Type | Description |
---|---|
CUFilterMode |
Flags
Flags
Declaration
public CUTexRefSetFlags Flags { get; }
Property Value
Type | Description |
---|---|
CUTexRefSetFlags |
Format
Format
Declaration
public CUArrayFormat Format { get; }
Property Value
Type | Description |
---|---|
CUArrayFormat |
Height
Height
Declaration
public SizeT Height { get; }
Property Value
Type | Description |
---|---|
SizeT |
Module
Module
Declaration
public CUmodule Module { get; }
Property Value
Type | Description |
---|---|
CUmodule |
Name
Name
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
NumChannels
NumChannels
Declaration
public int NumChannels { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
TextureReference
TextureReference
Declaration
public CUtexref TextureReference { get; }
Property Value
Type | Description |
---|---|
CUtexref |
TotalSizeInBytes
TotalSizeInBytes
Declaration
public SizeT TotalSizeInBytes { get; }
Property Value
Type | Description |
---|---|
SizeT |
Width
Width
Declaration
public SizeT Width { get; }
Property Value
Type | Description |
---|---|
SizeT |
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()
Implements
System.IDisposable