You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/remote-rendering/tutorials/native-cpp/hololens/integrate-arr-into-holographic-app.md
+35-36Lines changed: 35 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,17 +27,17 @@ This tutorial focuses on adding the necessary bits to a native `Holographic App`
27
27
For this tutorial you need:
28
28
29
29
* Your account information (account ID, account key, subscription ID). If you don't have an account, [create an account](../../../how-tos/create-an-account.md).
30
-
* Windows SDK 10.0.18362.0 [(download)](https://developer.microsoft.com/windows/downloads/windows-10-sdk)
31
-
* The latest version of Visual Studio 2019 [(download)](https://visualstudio.microsoft.com/vs/older-downloads/)
32
-
* The Windows Mixed Reality App Templates for Visual Studio [(download)](https://marketplace.visualstudio.com/items?itemName=WindowsMixedRealityteam.WindowsMixedRealityAppTemplatesVSIX)
30
+
* Windows SDK 10.0.18362.0 [(download)](https://developer.microsoft.com/windows/downloads/windows-10-sdk).
31
+
* The latest version of Visual Studio 2019 [(download)](https://visualstudio.microsoft.com/vs/older-downloads/).
32
+
* The Windows Mixed Reality App Templates for Visual Studio [(download)](https://marketplace.visualstudio.com/items?itemName=WindowsMixedRealityteam.WindowsMixedRealityAppTemplatesVSIX).
33
33
34
34
## Create a new Holographic App sample
35
35
36
36
As a first step, we create a stock sample that is the basis for the Remote Rendering integration. Open Visual Studio and select "Create a new project" and search for "Holographic DirectX 11 App (Universal Windows) (C++/WinRT)"
37
37
38
38

39
39
40
-
Type in a project name of your choice, choose the path and select the "Create" button.
40
+
Type in a project name of your choice, choose a path and select the "Create" button.
41
41
In the new project, switch the configuration to **"Debug / ARM64"**. You should now be able to compile and deploy it to a connected HoloLens 2 device. If you run it on HoloLens, you should see a rotating cube in front of you.
42
42
43
43
## Add Remote Rendering dependencies through NuGet
@@ -52,16 +52,16 @@ In the prompted dialog, browse for the **"Azure Remote Rendering"** NuGet packag
52
52
and add it to the project by selecting the package and then pressing the "Install" button.
53
53
54
54
The NuGet package adds the Remote Rendering dependencies to the project. Specifically:
55
-
*link against the client library (RemoteRenderingClient.lib),
56
-
*set up the .dll dependencies,
57
-
*set the correct path to the include directory.
55
+
*Link against the client library (RemoteRenderingClient.lib).
56
+
*Set up the .dll dependencies.
57
+
*Set the correct path to the include directory.
58
58
59
59
## Project preparation
60
60
61
61
We need make small changes to the existing project. These changes are subtle, but without them Remote Rendering would not work.
62
62
63
-
### Enable multithreaded protection on DirectX device
64
-
The `DirectX11` device must have multithreaded protection enabled. To change that, open file DeviceResources.cpp in folder "Common", and insert the following code at the end of function `DeviceResources::CreateDeviceResources()`:
63
+
### Enable multi thread protection on DirectX device
64
+
The `DirectX11` device must have multi thread protection enabled. To change that, open file DeviceResources.cpp in folder "Common", and insert the following code at the end of function `DeviceResources::CreateDeviceResources()`:
65
65
66
66
```cpp
67
67
// Enable multi thread protection as now multiple threads use the immediate context.
@@ -76,14 +76,13 @@ if (context.As(&contextMultithread) == S_OK)
76
76
Network capabilities must be explicitly enabled for the deployed app. Without this being configured, connection queries will result in timeouts eventually. To enable, double-click on the `package.appxmanifest` item in the solution explorer. In the next UI, go to the **Capabilities** tab and select:
Now that the project is prepared, we can start with the code. A good entry point into the application is class `HolographicAppMain`(file HolographicAppMain.h/cpp) because it has all the necessary hooks for initialization, de-initialization, and rendering.
85
+
Now that the project is prepared, we can start with the code. A good entry point into the application is the class `HolographicAppMain`(file HolographicAppMain.h/cpp) because it has all the necessary hooks for initialization, de-initialization, and rendering.
87
86
88
87
### Includes
89
88
@@ -138,7 +137,7 @@ Add the following code to the beginning of the constructor body in file Holograp
0 commit comments