Training
Module
Render a 3D model with Azure Remote Rendering - Training
Use Azure Remote Rendering to render a 3D model in a Unity project. You can deploy the model to HoloLens 2 or use the power of mixed reality with the MRTK.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
A command list is a recorded list of rendering commands. Use a command list to pre-record drawing commands and play them back later. This topic shows how to play back a command list. A command list can be used to split rendering tasks between threads.
This section describes how to play back a command list. For recording a command list, see How to: Record a Command List.
To play back a command list
if(g_pd3dCommandList)
{
g_pImmediateContext->ExecuteCommandList(g_pd3dCommandList, TRUE);
}
ExecuteCommandList must be executed on the immediate context for recorded commands to be run on the graphics processing unit (GPU). Use the immediate context to feed commands to the GPU for execution, use a deferred context to record commands for playback onto another command list. When you call ExecuteCommandList onto another deferred context, you create a ‘merged’ deferred command list. To run the commands on the merged deferred command list, you need to execute them on the immediate context.
Training
Module
Render a 3D model with Azure Remote Rendering - Training
Use Azure Remote Rendering to render a 3D model in a Unity project. You can deploy the model to HoloLens 2 or use the power of mixed reality with the MRTK.
Documentation
A command list is a sequence of GPU commands that can be recorded and played back. A command list may improve performance by reducing the amount of overhead generated by the runtime.
How to Record a Command List - Win32 apps
This topic shows how to create and record a command list.
Threading Differences between Direct3D Versions - Win32 apps
Many multi-threaded programming models make use of synchronization primitives (such as mutexes) to create critical sections and prevent code from being accessed by more than one thread at a time.