HolographicCameraPose.OverrideViewport(Rect, Rect) 方法

定义

指定应用正在此帧中呈现的帧缓冲区中的备用视区矩形。

public:
 virtual void OverrideViewport(Rect leftViewport, Rect rightViewport) = OverrideViewport;
void OverrideViewport(Rect const& leftViewport, Rect const& rightViewport);
public void OverrideViewport(Rect leftViewport, Rect rightViewport);
function overrideViewport(leftViewport, rightViewport)
Public Sub OverrideViewport (leftViewport As Rect, rightViewport As Rect)

参数

leftViewport
Rect

左眼视区矩形。

rightViewport
Rect

右视区矩形。

Windows 要求

设备系列
Windows 10, version 1803 (在 10.0.17134.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v6.0 中引入)

注解

CanOverrideViewport 返回 false 的设备(如 HoloLens)上调用 OverrideViewport 是错误的。

适用于