Dela via


HolographicDisplay.MaxViewportSize Property

Definition

Gets the maximum viewport size that an app will ever be asked to render to for this display.

public:
 property Size MaxViewportSize { Size get(); };
Size MaxViewportSize();
public Size MaxViewportSize { get; }
var size = holographicDisplay.maxViewportSize;
Public ReadOnly Property MaxViewportSize As Size

Property Value

The maximum viewport size.

Remarks

An app can use this maximum size to pre-allocate secondary buffers for its own use during rendering.

Note that this maximum viewport size will exceed the physical resolution of the headset's screen for displays with lens distortion.

Applies to