HolographicCamera.IsHardwareContentProtectionEnabled 屬性

定義

取得或設定這個 HolographicCamera 是否會為主要層產生受硬體保護的背景緩衝區。

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

屬性值

Boolean

bool

是否啟用硬體內容保護。

Windows 需求

裝置系列
Windows 10, version 1809 (已於 10.0.17763.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v7.0 引進)

備註

如果此屬性成功設定為 true, Direct3D11BackBuffer 屬性會傳回主要層受硬體保護的後端緩衝區。 除非 IsHardwareContentProtectionSupported 傳回 true,否則將此屬性設定為 true 將會失敗。

啟用內容保護時,轉譯的內容只會顯示在頭戴式裝置中,停用Mixed Reality入口網站的預覽。

除非尚未針對指定的畫面呼叫 GetRenderingParameters ,否則此屬性的變更將會對未來的畫面生效。 若要確保特定背景緩衝區受到硬體保護,您可以檢查其 D3D11_RESOURCE_MISC_HW_PROTECTED 旗標是否已設定。

注意

此屬性不會影響四層的內容保護。 若要啟用四層緩衝區的硬體內容保護,請在您取得更新的新緩衝區時呼叫 AcquireBufferToUpdateContentWithHardwareProtection

適用於