ILGPU  0.9.0
ILGPU.Backends.SeparateViews.ViewImplementation Struct Reference

Represents an array view that is not implemented directly and relies on separate driver support to map the actual device pointers to allocated memory buffers. More...

Public Member Functions

 ViewImplementation (long index, long length)
 Constructs a new array view implementation. More...
 

Static Public Member Functions

static MethodInfo GetCreateMethod (Type sourceType)
 Returns a specialized create method. More...
 
static MethodInfo GetNativePtrMethod (Type elementType)
 Gets the native-pointer method for the given element type. More...
 
static ViewImplementation Create< T > (ArrayView< T > source)
 Creates a new view implemented using the given array view. More...
 
static FieldInfo GetIndexField (Type implType)
 Returns the index field of a view implementation. More...
 
static FieldInfo GetLengthField (Type implType)
 Returns the length field of a view implementation. More...
 

Public Attributes

readonly long Index
 The linear index into the view. More...
 
readonly long Length
 The length. More...
 

Detailed Description

Represents an array view that is not implemented directly and relies on separate driver support to map the actual device pointers to allocated memory buffers.

Constructor & Destructor Documentation

ILGPU.Backends.SeparateViews.ViewImplementation.ViewImplementation ( long  index,
long  length 
)

Constructs a new array view implementation.

Parameters
indexThe index into the view.
lengthThe length information.

Member Function Documentation

static ViewImplementation ILGPU.Backends.SeparateViews.ViewImplementation.Create< T > ( ArrayView< T >  source)
static

Creates a new view implemented using the given array view.

Template Parameters
TThe element type.
Parameters
sourceThe source view.
Returns
The created view implementation.
Type Constraints
T :unmanaged 
T :new 
T :ViewImplementation 
T :source.Index 
T :source.Length 
static MethodInfo ILGPU.Backends.SeparateViews.ViewImplementation.GetCreateMethod ( Type  sourceType)
static

Returns a specialized create method.

Parameters
sourceTypeThe source array-view type.
Returns
The resolved creation method.
static FieldInfo ILGPU.Backends.SeparateViews.ViewImplementation.GetIndexField ( Type  implType)
static

Returns the index field of a view implementation.

Parameters
implTypeThe view implementation type.
Returns
The resolved field.
static FieldInfo ILGPU.Backends.SeparateViews.ViewImplementation.GetLengthField ( Type  implType)
static

Returns the length field of a view implementation.

Parameters
implTypeThe view implementation type.
Returns
The resolved field.
static MethodInfo ILGPU.Backends.SeparateViews.ViewImplementation.GetNativePtrMethod ( Type  elementType)
static

Gets the native-pointer method for the given element type.

Parameters
elementTypeThe element type.
Returns
The instantiated native method.

Member Data Documentation

readonly long ILGPU.Backends.SeparateViews.ViewImplementation.Index

The linear index into the view.

readonly long ILGPU.Backends.SeparateViews.ViewImplementation.Length

The length.


The documentation for this struct was generated from the following file: