Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 2.02 KB

holographicquadlayerupdateparameters_acquirebuffertoupdatecontentwithhardwareprotection_809854092.md

File metadata and controls

35 lines (22 loc) · 2.02 KB
-api-id -api-type
M:Windows.Graphics.Holographic.HolographicQuadLayerUpdateParameters.AcquireBufferToUpdateContentWithHardwareProtection
winrt method

Windows.Graphics.Holographic.HolographicQuadLayerUpdateParameters.AcquireBufferToUpdateContentWithHardwareProtection

-description

Gets a hardware-protected Direct3D 11 back buffer whose contents will be displayed for this quad layer from this frame forward.

-returns

The Direct3D 11 surface that holds the hardware-protected back buffer.

-remarks

This method acquires a hardware-protected buffer that will be used to update the quad layer. Applications must acquire a new buffer each time they need to change the texture. Avoid calling this method if you do not need to update the texture.

This method call will fail unless CanAcquireWithHardwareProtection returns true.

To avoid repeated texture load costs, applications may load a single quad layer buffer containing a texture atlas and then call UpdateViewport to select a subset rectangle within the texture to display.

This method will make use of the Direct3D device you provided to the HolographicSpace. If you've specified the D3D11_CREATE_DEVICE_SINGLETHREADED flag on your device, be sure to call this method from your single Direct3D thread to avoid undefined behavior.

To enable hardware content protection for the primary layer's buffer, set HolographicCamera.IsHardwareContentProtectionEnabled to true.

Note

This method must be called when updating a HolographicQuadLayer object for the first time.

-see-also

-examples