Skip to main content
API Reference NianticSpatial.Nsdk.MetaQuest XROcclusionSubsystemExtensions

TryAcquireEnvironmentDepthCpuImageExt


Declaration

public static bool TryAcquireEnvironmentDepthCpuImageExt(this XROcclusionSubsystem occlusionSubsystem, ref Texture2D tempDataHolder, out XRCpuImage cpuImage)

Parameters

NameTypeSummary
occlusionSubsystemXROcclusionSubsystem
-
tempDataHolderTexture2D
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.
cpuImageXRCpuImage
The resulting CPU image.