Click or drag to resize

DeviceArrayNETFormat Class

A reference-counted handle to GPU memory containing data of NETFormat.
Inheritance Hierarchy
SystemObject
  Zivid.NETDeviceArrayNETFormat

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

Type Parameters

NETFormat

The DeviceArrayNETFormat 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 array is empty
Public propertyIsValid
Check whether the array is valid (non-empty)
Public propertySize
Get the number of elements in the array
Public propertySizeInBytes
Get the size of the array in bytes
Top
Methods
  NameDescription
Public methodCopyToHost
Enqueue a copy of the device array data to a host buffer on the given stream/queue.
Public methodDevicePointer
Get the device pointer to the array data. No synchronization is performed; the array was already synchronized against the acquisition stream/queue when it was produced.
Public methodDispose
Releases all resources used by the DeviceArrayNETFormat
Public methodShallowCopy
Return a shallow copy of the array sharing the underlying device memory
Public methodShape
Get the shape of the array as a list of dimension extents
Public methodStrides
Get the strides of the array in element count
Public methodStridesInBytes
Get the strides of the array in bytes
Public methodToArray1D
Copy the device array data to host as a 1D array [length], enqueued on the given stream/queue and synchronized before returning.
Public methodToArray2D
Copy the device array data to host as a 2D array [height, width], enqueued on the given stream/queue and synchronized before returning.
Top
Remarks
ToArray2D(StreamOrQueue) throws InvalidOperationException when called on an unorganized device array (use ToArray1D(StreamOrQueue) instead), and vice versa. The shape of the underlying buffer determines which call is valid. Instances are obtained from PointCloud, UnorganizedPointCloud, Frame2D, or ComputeDevice.
See Also