Click or drag to resize

DeviceArrayViewNETFormat Class

A non-owning view over device memory of NETFormat.
Inheritance Hierarchy
SystemObject
  Zivid.NETDeviceArrayViewNETFormat

Namespace:  Zivid.NET
Assembly:  ZividCoreNET (in ZividCoreNET.dll) Version: 2.18.0.0
Syntax
public sealed class DeviceArrayView<NETFormat> : IDisposable

Type Parameters

NETFormat

The DeviceArrayViewNETFormat type exposes the following members.

Properties
  NameDescription
Public propertyBackend
Get the GPU compute backend that owns the underlying device memory
Public propertyIsDisposed
Public propertyIsEmpty
Check whether the view is empty
Public propertyIsValid
Check whether the view is valid (non-empty)
Public propertySize
Get the number of elements in the view
Public propertySizeInBytes
Get the size of the view in bytes
Top
Methods
  NameDescription
Public methodCopyToHost
Enqueue a copy of the view data to a host buffer on the given stream/queue. Non-blocking.
Public methodDevicePointer
Get the device pointer to the view data. No synchronization is performed.
Public methodDispose
Releases all resources used by the DeviceArrayViewNETFormat
Public methodShape
Get the shape of the view as a list of dimension extents
Public methodStrides
Get the strides of the view in element count
Public methodStridesInBytes
Get the strides of the view in bytes
Public methodToArray1D
Copy the view data to host as a 1D array, enqueued on the given stream/queue and synchronized before returning.
Public methodToArray2D
Copy the view data to host as a 2D array, enqueued on the given stream/queue and synchronized before returning.
Top
Remarks
Returned by ComputeDevice over caller-owned GPU memory. The view does not own or extend the lifetime of the underlying memory.
See Also