Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetSharedDepthTextureForRenderPass(int)

Given a render pass, return the shared depth buffer RenderTexture instance backing that render pass. If the render pass is invalid, or if the render texture does not exist, return null.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
public RenderTexture GetSharedDepthTextureForRenderPass(int renderPass)

Parameters

renderPass

The render pass index to get the shared depth buffer render texture for.

Returns

Type

Description

RenderTextureThe shared depth buffer render texture associated with that render pass, or null if not found.