Class CudaTextureLinearPitched2D<T>
CudaLinearTexture2D
Inheritance
Implements
Inherited Members
Namespace: ManagedCuda
Assembly: ManagedCuda.dll
Syntax
public class CudaTextureLinearPitched2D<T> : IDisposable where T : struct
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourceCudaTextureLinearPitched2D(CudaKernel, String, CUAddressMode, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, SizeT, SizeT)
Creates a new 2D texture from linear memory. Allocates a new device variable
Declaration
public CudaTextureLinearPitched2D(CudaKernel kernel, string texName, CUAddressMode addressMode0, CUAddressMode addressMode1, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, SizeT width, SizeT height)
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 |
CudaTextureLinearPitched2D(CudaKernel, String, CUAddressMode, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, CudaPitchedDeviceVariable<T>)
Creates a new 2D texture from linear memory.
Declaration
public CudaTextureLinearPitched2D(CudaKernel kernel, string texName, CUAddressMode addressMode0, CUAddressMode addressMode1, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, CudaPitchedDeviceVariable<T> deviceVar)
Parameters
Type | Name | Description |
---|---|---|
CudaKernel | kernel | |
System.String | texName | |
CUAddressMode | addressMode0 | |
CUAddressMode | addressMode1 | |
CUFilterMode | filterMode | |
CUTexRefSetFlags | flags | |
CUArrayFormat | format | |
CudaPitchedDeviceVariable<T> | deviceVar |
CudaTextureLinearPitched2D(CudaKernel, String, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, SizeT, SizeT)
Creates a new 2D texture from linear memory. Allocates a new device variable
Declaration
public CudaTextureLinearPitched2D(CudaKernel kernel, string texName, CUAddressMode addressMode, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, SizeT width, SizeT height)
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 |
CudaTextureLinearPitched2D(CudaKernel, String, CUAddressMode, CUFilterMode, CUTexRefSetFlags, CUArrayFormat, CudaPitchedDeviceVariable<T>)
Creates a new 2D texture from linear memory.
Declaration
public CudaTextureLinearPitched2D(CudaKernel kernel, string texName, CUAddressMode addressMode, CUFilterMode filterMode, CUTexRefSetFlags flags, CUArrayFormat format, CudaPitchedDeviceVariable<T> deviceVar)
Parameters
Type | Name | Description |
---|---|---|
CudaKernel | kernel | |
System.String | texName | |
CUAddressMode | addressMode | |
CUFilterMode | filterMode | |
CUTexRefSetFlags | flags | |
CUArrayFormat | format | |
CudaPitchedDeviceVariable<T> | deviceVar |
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 |
ChannelSize
ChannelSize
Declaration
public uint ChannelSize { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
CUFuntion
CUFunction
Declaration
public CUfunction CUFuntion { get; }
Property Value
Type | Description |
---|---|
CUfunction |
DeviceVar
Device variable in linear Memory
Declaration
public CudaPitchedDeviceVariable<T> DeviceVar { get; }
Property Value
Type | Description |
---|---|
CudaPitchedDeviceVariable<T> |
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()
Reset(CudaPitchedDeviceVariable<T>)
Binds a linear address range to the texture reference.
Any previous address or CUDA array state associated with the texture reference is superseded by this function.
Any memory previously bound to the texture reference is unbound.
Size my differ to the previous bound variable, but type must be the same.
Declaration
public void Reset(CudaPitchedDeviceVariable<T> deviceVar)
Parameters
Type | Name | Description |
---|---|---|
CudaPitchedDeviceVariable<T> | deviceVar | New device variable to bind this texture reference to. |