Dela via


HolographicCamera.IsHardwareContentProtectionEnabled Property

Definition

Gets or sets whether this HolographicCamera will produce hardware-protected back buffers for the primary layer.

public:
 property bool IsHardwareContentProtectionEnabled { bool get(); void set(bool value); };
bool IsHardwareContentProtectionEnabled();

void IsHardwareContentProtectionEnabled(bool value);
public bool IsHardwareContentProtectionEnabled { get; set; }
var boolean = holographicCamera.isHardwareContentProtectionEnabled;
holographicCamera.isHardwareContentProtectionEnabled = boolean;
Public Property IsHardwareContentProtectionEnabled As Boolean

Property Value

Boolean

bool

Whether hardware content protection is enabled.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

If this property is successfully set to true, the Direct3D11BackBuffer property will return hardware-protected back buffers for the primary layer. Setting this property to true will fail unless IsHardwareContentProtectionSupported returns true.

While content protection is enabled, rendered content will be visible only in the headset, disabling the Mixed Reality Portal's preview.

Changes to this property will take effect on future frames, unless GetRenderingParameters has not yet been called for a given frame. To ensure that a particular back buffer is hardware-protected, you can check that its D3D11_RESOURCE_MISC_HW_PROTECTED flag is set.

Note

This property does not affect content protection for quad layers. To enable hardware content protection for a quad layer's buffer, call AcquireBufferToUpdateContentWithHardwareProtection whenever you acquire new buffers for updates.

Applies to