Class XRCpuImage.Api
An API for interacting with XRCpu
Inherited Members
Namespace: UnityEngine .XR.ARSubsystems
Assembly: solution.dll
Syntax
public abstract class XRCpuImage.Api
Remarks
This interface is intended to be implemented by AR platform providers (for example, ARCore, ARKit, Magic Leap,
and HoloLens). The XRCpu
Methods
Name | Description |
---|---|
Convert |
Method to be implemented by the provider to create an asynchronous request to convert a camera image,
similar to Try |
Convert |
Method to be implemented by the provider. It is similar to
Convert |
Dispose |
Method to be implemented by the provider to dispose an existing async conversion request. |
Dispose |
Method to be implemented by the provider to dispose an existing native image identified by
|
Format |
Determines whether a given TextureFormat is supported for image conversion. |
Get |
Method to be implemented by the provider to get the status of an existing asynchronous conversion request. |
Native |
Method to be implemented by the provider to determine whether a native image handle is currently valid. An image can become invalid if it has been disposed. |
Try |
Method to be implemented by the provider to convert the image with handle
|
Try |
Method to be implemented by the provider to get a pointer to the image data from a completed
asynchronous request. This method should only succeed if Get |
Try |
Method to be implemented by the provider to get the number of bytes required to store an image with the
given dimensions and |
Try |
Method to be implemented by the provider to get information about an image plane from a native image handle by index. |