Dela via


Class GraphicsBinding

Base class for graphics bindings.

class Microsoft::Azure::RemoteRendering::GraphicsBinding

Methods

GetLastFrameStatistics

Retrieves the last frame's statistics.

A Result.NoConnection error occurs if this is called while there is no connection to the server.

auto GetLastFrameStatistics(Microsoft::Azure::RemoteRendering::FrameStatistics* stats) noexcept -> Microsoft::Azure::RemoteRendering::Result;

Parameters

Name Type Description
stats FrameStatistics

Returns

Type Description
Result Result.Success, Result.NotInitialized, Result.Fail, Result.NoConnection

See also

GetPoseMode

Gets the current pose mode.

auto GetPoseMode() noexcept -> Microsoft::Azure::RemoteRendering::PoseMode;

Returns

Type Description
PoseMode

SetPoseMode

Set the pose mode.

A Result.NotSupported error occurs if PoseMode.Remote is used on Android or if PoseMode.Passthrough is set on anything other than GraphicsBindingSimD3d11.

auto SetPoseMode(Microsoft::Azure::RemoteRendering::PoseMode mode) noexcept -> Microsoft::Azure::RemoteRendering::Result;

Parameters

Name Type Description
mode PoseMode

Returns

Type Description
Result Result.Success, Result.NotInitialized, Result.Fail, Result.NotSupported

Properties

Api

The derived graphics binding that this instance can be cast to.

This may only be called when the RemoteRenderingClient is initialized.

auto GetApi() const noexcept -> Microsoft::Azure::RemoteRendering::GraphicsApiType;

See also