GraphicsBindingSimD3d11.InitSimulation Method

Definition

Overloads

InitSimulation(IntPtr, Int32, Int32, Single, Boolean, Boolean, Boolean)

Initializes the simulation. Needs to be called before a remote rendering session is started. This is an alternative initialization call, where no proxy targets are configured. Therefore, local pose mode will be forced and ReprojectProxy() will essentially become a no-op. The caller is expected to bind the final render target before calling BlitRemoteFrameToProxy().

InitSimulation(IntPtr, IntPtr, IntPtr, Single, Boolean, Boolean, Boolean)

Initializes the simulation. Needs to be called before a remote rendering session is started.

InitSimulation(IntPtr, Int32, Int32, Single, Boolean, Boolean, Boolean)

Initializes the simulation. Needs to be called before a remote rendering session is started. This is an alternative initialization call, where no proxy targets are configured. Therefore, local pose mode will be forced and ReprojectProxy() will essentially become a no-op. The caller is expected to bind the final render target before calling BlitRemoteFrameToProxy().

public:
 Microsoft::Azure::RemoteRendering::Result InitSimulation(IntPtr d3dDevice, int renderTargetWidth, int renderTargetHeight, float refreshRate, bool flipBlitRemoteFrameTextureVertically, bool flipReprojectTextureVertically, bool stereo);
public Microsoft.Azure.RemoteRendering.Result InitSimulation (IntPtr d3dDevice, int renderTargetWidth, int renderTargetHeight, float refreshRate, bool flipBlitRemoteFrameTextureVertically, bool flipReprojectTextureVertically, bool stereo);
member this.InitSimulation : nativeint * int * int * single * bool * bool * bool -> Microsoft.Azure.RemoteRendering.Result
Public Function InitSimulation (d3dDevice As IntPtr, renderTargetWidth As Integer, renderTargetHeight As Integer, refreshRate As Single, flipBlitRemoteFrameTextureVertically As Boolean, flipReprojectTextureVertically As Boolean, stereo As Boolean) As Result

Parameters

d3dDevice
IntPtr

nativeint

The d3d device that will be used to render the remote image.

renderTargetWidth
Int32

The width of the final render target (minimum: 256).

renderTargetHeight
Int32

The heigth of the final render target (minimum: 256).

refreshRate
Single

Target refresh rate at which the remote runtime should render.

flipBlitRemoteFrameTextureVertically
Boolean

If set, BlitRemoteFrameToProxy() will flip the rendered image vertically.

flipReprojectTextureVertically
Boolean

If set, ReprojectProxy() will flip the rendered image vertically.

stereo
Boolean

Simulation will use stereoscopic rendering if set to true. The final render target needs to have two array layers in this case!

Returns

Success, NotInitialized, Fail, InvalidParam, UnsupportedDisplayAdapter

Applies to

InitSimulation(IntPtr, IntPtr, IntPtr, Single, Boolean, Boolean, Boolean)

Initializes the simulation. Needs to be called before a remote rendering session is started.

public:
 Microsoft::Azure::RemoteRendering::Result InitSimulation(IntPtr d3dDevice, IntPtr proxyDepth, IntPtr proxyColor, float refreshRate, bool flipBlitRemoteFrameTextureVertically, bool flipReprojectTextureVertically, bool stereo);
public Microsoft.Azure.RemoteRendering.Result InitSimulation (IntPtr d3dDevice, IntPtr proxyDepth, IntPtr proxyColor, float refreshRate, bool flipBlitRemoteFrameTextureVertically, bool flipReprojectTextureVertically, bool stereo);
member this.InitSimulation : nativeint * nativeint * nativeint * single * bool * bool * bool -> Microsoft.Azure.RemoteRendering.Result
Public Function InitSimulation (d3dDevice As IntPtr, proxyDepth As IntPtr, proxyColor As IntPtr, refreshRate As Single, flipBlitRemoteFrameTextureVertically As Boolean, flipReprojectTextureVertically As Boolean, stereo As Boolean) As Result

Parameters

d3dDevice
IntPtr

nativeint

The d3d device that will be used to render the remote image.

proxyDepth
IntPtr

nativeint

Depth texture of the proxy render-target.

proxyColor
IntPtr

nativeint

Color texture of the proxy render-target. The minimum dimension of the texture is 256x256.

refreshRate
Single

Target refresh rate at which the remote runtime should render.

flipBlitRemoteFrameTextureVertically
Boolean

If set, BlitRemoteFrameToProxy() will flip the rendered image vertically.

flipReprojectTextureVertically
Boolean

If set, ReprojectProxy() will flip the rendered image vertically.

stereo
Boolean

Simulation will use stereoscopic rendering if set to true. The proxy textures need to have two array layers in this case!

Returns

Success, NotInitialized, Fail, InvalidParam, UnsupportedDisplayAdapter

Applies to