Dela via


HolographicSpace Class

Definition

Represents a holographic scene, with one or more holographic cameras rendering its content.

public ref class HolographicSpace sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class HolographicSpace final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class HolographicSpace
Public NotInheritable Class HolographicSpace
Inheritance
Object Platform::Object IInspectable HolographicSpace
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

Remarks

Version history

Windows version SDK version Value added
1703 15063 IsAvailable
1703 15063 IsAvailableChanged
1703 15063 IsSupported
1709 16299 IsConfigured
1803 17134 CreateFramePresentationMonitor
1803 17134 UserPresence
1803 17134 UserPresenceChanged
1803 17134 WaitForNextFrameReady
1803 17134 WaitForNextFrameReadyWithHeadStart
2004 19041 CreateFrameScanoutMonitor

Properties

IsAvailable

Gets whether a Mixed Reality headset is ready for holographic rendering.

IsConfigured

Gets whether the current system has been configured by the user for Mixed Reality headsets.

IsSupported

Gets whether the current system supports Mixed Reality headsets.

PrimaryAdapterId

Gets the identifier of the graphics adapter to be used when displaying holographic content to the default HolographicDisplay.

UserPresence

Describes whether the user is present within the headset to view and interact with this HolographicSpace.

Methods

CreateForCoreWindow(CoreWindow)

Creates a HolographicSpace that corresponds with the specified window's CoreApplicationView.

CreateFramePresentationMonitor(UInt32)

Creates an object to monitor an independent stream of frame presentation reports from this HolographicSpace.

CreateFrameScanoutMonitor(UInt32)

Creates a HolographicFrameScanoutMonitor that allows Windows Mixed Reality applications to monitor detailed performance and timing information about the platform in real time.

CreateNextFrame()

Creates a HolographicFrame for the next frame to display.

SetDirect3D11Device(IDirect3DDevice)

Assigns the IDirect3DDevice that will display holographic content. An error will occur if the app creates an inappropriate device.

WaitForNextFrameReady()

Blocks the current thread until the right time to begin rendering the next frame.

WaitForNextFrameReadyWithHeadStart(TimeSpan)

Blocks the current thread until the right time to begin rendering the next frame, with the specified head start.

Events

CameraAdded

Occurs when a HolographicCamera is added to the current HolographicSpace.

CameraRemoved

Occurs when a HolographicCamera is removed from the current HolographicSpace.

IsAvailableChanged

Occurs when a configured and ready Mixed Reality headset is attached or detached from the system.

UserPresenceChanged

Occurs when the user's presence within the headset or ability to view and interact with this HolographicSpace changes.

Applies to