HolographicQuadLayerUpdateParameters.AcquireBufferToUpdateContentWithHardwareProtection 方法

定义

获取硬件保护的 Direct3D 11 后台缓冲区,该缓冲区将从此帧向前显示此四边形层的内容。

public:
 virtual IDirect3DSurface ^ AcquireBufferToUpdateContentWithHardwareProtection() = AcquireBufferToUpdateContentWithHardwareProtection;
IDirect3DSurface AcquireBufferToUpdateContentWithHardwareProtection();
public IDirect3DSurface AcquireBufferToUpdateContentWithHardwareProtection();
function acquireBufferToUpdateContentWithHardwareProtection()
Public Function AcquireBufferToUpdateContentWithHardwareProtection () As IDirect3DSurface

返回

保留硬件保护的后台缓冲区的 Direct3D 11 图面。

Windows 要求

设备系列
Windows 10, version 1809 (在 10.0.17763.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v7.0 中引入)

注解

此方法获取硬件保护的缓冲区,该缓冲区将用于更新象限层。 每次需要更改纹理时,应用程序都必须获取新的缓冲区。 如果不需要更新纹理,请避免调用此方法。

除非 CanAcquireWithHardwareProtection 返回 true,否则此方法调用将失败。

为了避免重复的纹理加载成本,应用程序可以加载包含纹理图集的单四层缓冲区,然后调用 UpdateViewport 以选择要显示的纹理内的子集矩形。

此方法将使用你提供给 HolographicSpace 的 Direct3D 设备。 如果已在设备上指定 D3D11_CREATE_DEVICE_SINGLETHREADED 标志,请确保从单个 Direct3D 线程调用此方法,以避免未定义的行为。

若要为主层的缓冲区启用硬件内容保护,请将 HolographicCamera.IsHardwareContentProtectionEnabled 设置为 true。

注意

首次更新 HolographicQuadLayer 对象时,必须调用此方法。

适用于