BRE12
pix3_win.h
1 /*==========================================================================;
2  *
3  * Copyright (C) Microsoft Corporation. All Rights Reserved.
4  *
5  * File: PIX3_win.h
6  * Content: PIX include file
7  * Don't include this file directly - use pix3.h
8  *
9  ****************************************************************************/
10 
11 #pragma once
12 
13 #ifndef _PIX3_H_
14 #error Don't include this file directly - use pix3.h
15 #endif
16 
17 #ifndef _PIX3_WIN_H_
18 #define _PIX3_WIN_H_
19 
21 {
22 };
23 
25 {
26  PIXEventsBlockInfo* block;
27  UINT64* biasedLimit;
28  UINT64* destination;
29  UINT64* limit;
30  UINT64 id;
31 };
32 
33 extern "C" PIXEventsThreadInfo* PIXGetThreadInfo();
34 
35 // The following defines denote the different metadata values that have been used
36 // by tools to denote how to parse pix marker event data. The first two values
37 // are legacy values.
38 #define WINPIX_EVENT_UNICODE_VERSION 0
39 #define WINPIX_EVENT_ANSI_VERSION 1
40 #define WINPIX_EVENT_PIX3BLOB_VERSION 2
41 
42 #define D3D12_EVENT_METADATA WINPIX_EVENT_PIX3BLOB_VERSION
43 
44 __forceinline UINT64 PIXGetTimestampCounter()
45 {
46  LARGE_INTEGER time = {};
47  QueryPerformanceCounter(&time);
48  return time.QuadPart;
49 }
50 
51 #define PIXSetCPUMarkerOnContext(context, metadata, ...) MakeCPUSetMarkerForContext(metadata, context, __VA_ARGS__)
52 #define PIXBeginCPUEventOnContext(context, metadata, ...) MakeCPUBeginEventForContext(metadata, context, __VA_ARGS__)
53 #define PIXEndCPUEventOnContext(context) MakeCPUEndEventForContext(context)
54 
55 #endif //_PIX3_WIN_H_
Definition: pix3_win.h:24
Definition: pix3_win.h:20