Class CudaTextureLinear1D<T>
CudaLinearTexture1D
Inheritance
System.Object
CudaTextureLinear1D<T>
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 CudaTextureLinear1D<T> : IDisposable where T : struct
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourceCudaTextureLinear1D(CudaKernel, String, CUAddressMode, CUTexRefSetFlags, CUArrayFormat, CudaDeviceVariable<T>)
Creates a new 1D texture from linear memory.
Declaration
public CudaTextureLinear1D(CudaKernel kernel, string texName, CUAddressMode addressMode0, CUTexRefSetFlags flags, CUArrayFormat format, CudaDeviceVariable<T> deviceVar)
Parameters
Type | Name | Description |
---|---|---|
CudaKernel | kernel | |
System.String | texName | |
CUAddressMode | addressMode0 | |
CUTexRefSetFlags | flags | |
CUArrayFormat | format | |
CudaDeviceVariable<T> | deviceVar |
CudaTextureLinear1D(CudaKernel, String, CUTexRefSetFlags, CUAddressMode, CUArrayFormat, SizeT)
Creates a new 1D texture from linear memory. Allocates a new device variable
Declaration
public CudaTextureLinear1D(CudaKernel kernel, string texName, CUTexRefSetFlags flags, CUAddressMode addressMode0, CUArrayFormat format, SizeT size)
Parameters
Type | Name | Description |
---|---|---|
CudaKernel | kernel | |
System.String | texName | |
CUTexRefSetFlags | flags | |
CUAddressMode | addressMode0 | |
CUArrayFormat | format | |
SizeT | size | In elements |
Properties
| Improve this Doc View SourceAddressMode0
AddressMode
Declaration
public CUAddressMode AddressMode0 { 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 |
DeviceVariable
Device variable in linear Memory
Declaration
public CudaDeviceVariable<T> DeviceVariable { get; }
Property Value
Type | Description |
---|---|
CudaDeviceVariable<T> |
Filtermode
Filtermode
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 |
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 |
Size
Size
Declaration
public SizeT Size { get; }
Property Value
Type | Description |
---|---|
SizeT |
TextureReference
TextureReference
Declaration
public CUtexref TextureReference { get; }
Property Value
Type | Description |
---|---|
CUtexref |
TotalSizeInBytes
TotalSizeInBytes
Declaration
public SizeT TotalSizeInBytes { 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(CudaDeviceVariable<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(CudaDeviceVariable<T> deviceVar)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<T> | deviceVar | New device variable to bind this texture reference to. |
Implements
System.IDisposable