Skip to content

Commit 91dfc1b

Browse files
author
REDMOND\jingf
committed
N/A
1 parent 5fe0e06 commit 91dfc1b

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

Samples/Tutorial Samples/WinMLPIXSample/WinMLPIXSample/WinMLHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

Samples/Tutorial Samples/WinMLPIXSample/WinMLPIXSample/WinMLHelper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static vector<string> labels;
2828
void LoadModel();
2929
VideoFrame LoadImageFile(hstring filePath);
3030
void CreateSession(ID3D12CommandQueue* commandQueue);
31-
void BindModel(ID3D12CommandQueue* commandQueue);
31+
void BindModel();
3232
void EvaluateModel();
3333
void PrintResults(IVectorView<float> results);
3434
void LoadLabels();

Samples/Tutorial Samples/WinMLPIXSample/WinMLPIXSample/main.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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

9696
void 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();

Samples/Tutorial Samples/WinMLPIXSample/WinMLPIXSample/readme.txt renamed to Samples/Tutorial Samples/WinMLPIXSample/WinMLPIXSample/readme.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
========================================================================
1+
===========================================================================
22
C++/WinRT WinMLPIXSample Project Overview
3-
========================================================================
3+
===========================================================================
44

55
This 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+
===========================================================================

0 commit comments

Comments
 (0)