File tree Expand file tree Collapse file tree 4 files changed +17
-12
lines changed
Samples/Tutorial Samples/WinMLPIXSample/WinMLPIXSample Expand file tree Collapse file tree 4 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ void CreateSession(ID3D12CommandQueue* commandQueue)
6161 session = LearningModelSession{ model, dmlDeviceCustom };
6262}
6363
64- void BindModel (ID3D12CommandQueue* commandQueue )
64+ void BindModel ()
6565{
6666 printf (" Binding the model...\n " );
6767 DWORD ticks = GetTickCount ();
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ static vector<string> labels;
2828void LoadModel ();
2929VideoFrame LoadImageFile (hstring filePath);
3030void CreateSession (ID3D12CommandQueue* commandQueue);
31- void BindModel (ID3D12CommandQueue* commandQueue );
31+ void BindModel ();
3232void EvaluateModel ();
3333void PrintResults (IVectorView<float > results);
3434void LoadLabels ();
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ void LoadAndEvaluate(ID3D12CommandQueue* commandQueue)
8686 CreateSession (commandQueue);
8787
8888 PIXSetMarker (commandQueue, m_color, " Start binding model..." );
89- BindModel (commandQueue );
89+ BindModel ();
9090
9191 PIXSetMarker (commandQueue, m_color, " Start evaluating model..." );
9292 EvaluateModel ();
@@ -95,10 +95,9 @@ void LoadAndEvaluate(ID3D12CommandQueue* commandQueue)
9595
9696void CaptureWithUserSetMarker ()
9797{
98- // Create command queue and command list, this command queue will be passed into PIXBeginEvent,
99- // PIXEndEvent and PIXSetMarker methods. We can either fetched the command queue from learning
100- // model or create a learning model with our own command queue to allow users to set markers in
101- // between the DX commands; creating a new queue will set the marker in a separate command queue
98+ // Create command queue and command list, this command queue will be used to create model
99+ // device and then passed into PIXBeginEvent, PIXEndEvent and PIXSetMarker methods to set
100+ // markers.
102101 GetD3D12CommandAssets ();
103102
104103 PIXCaptureParameters capParams = GetCap ();
Original file line number Diff line number Diff line change 1- ========================================================================
1+ ===========================================================================
22 C++/WinRT WinMLPIXSample Project Overview
3- ========================================================================
3+ ===========================================================================
44
55This project demonstrates how to get started using PIX for windows to do
6- GPU captures as well as setting markers programmatically
6+ GPU captures as well as setting markers programmatically.
77
8- ========================================================================
8+ NOTE: This sample uses redist build of PIX and loads WinPixEventRuntime.dll
9+ dynamically
910
10- ========================================================================
11+ To learn more about PIX:
12+ https://devblogs.microsoft.com/pix/
13+
14+ ===========================================================================
15+
16+ ===========================================================================
You can’t perform that action at this time.
0 commit comments