For information about timing queries, see DirectX Timing Queries.
Structure
Represents timestamp data.
typedef struct D3D11_QUERY_DATA_TIMESTAMP {
UINT64 Timestamp;
} D3D11_QUERY_DATA_TIMESTAMP;
Members
The D3D11_QUERY_DATA_TIMESTAMP structure has the following member.
Member | Description |
---|---|
Timestamp | A 64-bit unsigned integer that represents the timestamp. The value of the timestamp is determined by the hardware. |
Remarks
This structure is used by the D3D11_QUERY_TIMESTAMP query type.
When you call ID3D11DeviceContext::GetData for a D3D11_QUERY_TIMESTAMP query, the data returned will be a D3D11_QUERY_DATA_TIMESTAMP structure. The Timestamp member of this structure will contain the timestamp value from the GPU.
The units of the timestamp are determined by the hardware's clock. To convert the timestamp to a time in seconds, you will need to query the hardware's clock frequency. You can do this by creating a D3D11_QUERY_TIMESTAMP_DISJOINT query and checking its Disjoint member and Frequency member.
Note The timestamp value is only meaningful when compared with other timestamp values obtained from the same query heap.
Requirements
Manifest | |
---|---|
Minimum supported client | Windows 7 [desktop apps | UWP apps ] |
Minimum supported server | Windows Server 2008 R2 [desktop apps | UWP apps ] |
Header | d3d11.h (include D3D11.h) |
Library | D3d11.lib |
DLL | D3d11.dll |
See Also
Direct3D 11 Structures
ID3D11DeviceContext::GetData
D3D11_QUERY
D3D11_QUERY_TIMESTAMP_DISJOINT