TryAcquireEnvironmentDepthCpuImageExt
Declaration
public static bool TryAcquireEnvironmentDepthCpuImageExt(this XROcclusionSubsystem occlusionSubsystem, ref Texture2D tempDataHolder, out XRCpuImage cpuImage)
Parameters
| Name | Type | Summary |
|---|---|---|
| occlusionSubsystem | XROcclusionSubsystem | - |
| tempDataHolder | Texture2D | If the subsystem does not implement CPU images, this texture will be used as a temporary data holder to copy GPU depth to CPU memory. This texture may get destroyed and recreated if the size or format does not match the depth data. |
| cpuImage | XRCpuImage | The resulting CPU image. |