HolographicFrame.PresentUsingCurrentPrediction 方法

定義

多載

PresentUsingCurrentPrediction()

呈現所有相機的目前畫面,然後等到下一個畫面。

PresentUsingCurrentPrediction(HolographicFramePresentWaitBehavior)

針對具有指定等候行為的所有相機,呈現目前的畫面格。

PresentUsingCurrentPrediction()

呈現所有相機的目前畫面,然後等到下一個畫面。

public:
 virtual HolographicFramePresentResult PresentUsingCurrentPrediction() = PresentUsingCurrentPrediction;
/// [Windows.Foundation.Metadata.Overload("PresentUsingCurrentPrediction")]
HolographicFramePresentResult PresentUsingCurrentPrediction();
[Windows.Foundation.Metadata.Overload("PresentUsingCurrentPrediction")]
public HolographicFramePresentResult PresentUsingCurrentPrediction();
function presentUsingCurrentPrediction()
Public Function PresentUsingCurrentPrediction () As HolographicFramePresentResult

傳回

Present 呼叫的結果。

屬性

備註

除了非常簡單的應用程式之外,您通常應該呼叫雙參數多載,並傳入 DoNotWaitForFrameToFinish 的 waitBehavior。 接著,您可以手動呼叫 HolographicSpace.WaitForNextFrameReadyHolographicSpace.WaitForNextFrameReadyWithHeadStart ,讓應用程式的 CPU 和 GPU 在連續畫面之間重迭。

這個方法會使用您提供給 HolographicSpace 的 Direct3D 裝置。 如果您已在裝置上指定D3D11_CREATE_DEVICE_SINGLETHREADED旗標,請務必從您的單一 Direct3D 執行緒呼叫此方法,以避免未定義的行為。

另請參閱

適用於

PresentUsingCurrentPrediction(HolographicFramePresentWaitBehavior)

針對具有指定等候行為的所有相機,呈現目前的畫面格。

public:
 virtual HolographicFramePresentResult PresentUsingCurrentPrediction(HolographicFramePresentWaitBehavior waitBehavior) = PresentUsingCurrentPrediction;
/// [Windows.Foundation.Metadata.Overload("PresentUsingCurrentPredictionWithBehavior")]
HolographicFramePresentResult PresentUsingCurrentPrediction(HolographicFramePresentWaitBehavior const& waitBehavior);
[Windows.Foundation.Metadata.Overload("PresentUsingCurrentPredictionWithBehavior")]
public HolographicFramePresentResult PresentUsingCurrentPrediction(HolographicFramePresentWaitBehavior waitBehavior);
function presentUsingCurrentPrediction(waitBehavior)
Public Function PresentUsingCurrentPrediction (waitBehavior As HolographicFramePresentWaitBehavior) As HolographicFramePresentResult

參數

waitBehavior
HolographicFramePresentWaitBehavior

等候行為。

傳回

Present 呼叫的結果。

屬性

備註

除了非常簡單的應用程式之外,您通常應該傳入 DoNotWaitForFrameToFinish 的 waitBehavior。 接著,您可以手動呼叫 HolographicSpace.WaitForNextFrameReadyHolographicSpace.WaitForNextFrameReadyWithHeadStart ,讓應用程式的 CPU 和 GPU 在連續畫面之間重迭。

這個方法會使用您提供給 HolographicSpace 的 Direct3D 裝置。 如果您已在裝置上指定D3D11_CREATE_DEVICE_SINGLETHREADED旗標,請務必從您的單一 Direct3D 執行緒呼叫此方法,以避免未定義的行為。

另請參閱

適用於