Path: blob/21.2-virgl/src/gallium/frontends/d3d10umd/Query.h
4566 views
/**************************************************************************1*2* Copyright 2012-2021 VMware, Inc.3* All Rights Reserved.4*5* Permission is hereby granted, free of charge, to any person obtaining a6* copy of this software and associated documentation files (the7* "Software"), to deal in the Software without restriction, including8* without limitation the rights to use, copy, modify, merge, publish,9* distribute, sub license, and/or sell copies of the Software, and to10* permit persons to whom the Software is furnished to do so, subject to11* the following conditions:12*13* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL16* THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,17* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR18* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE19* USE OR OTHER DEALINGS IN THE SOFTWARE.20*21* The above copyright notice and this permission notice (including the22* next paragraph) shall be included in all copies or substantial portions23* of the Software.24*25**************************************************************************/2627/*28* Query.h --29* Functions that manipulate query resources.30*/3132#ifndef QUERY_H33#define QUERY_H3435#include "DriverIncludes.h"3637struct Device;3839SIZE_T APIENTRY CalcPrivateQuerySize(D3D10DDI_HDEVICE hDevice,40__in const D3D10DDIARG_CREATEQUERY *pCreateQuery);4142void APIENTRY CreateQuery(D3D10DDI_HDEVICE hDevice,43__in const D3D10DDIARG_CREATEQUERY *pCreateQuery,44D3D10DDI_HQUERY hQuery, D3D10DDI_HRTQUERY hRTQuery);4546void APIENTRY APIENTRY DestroyQuery(D3D10DDI_HDEVICE hDevice, D3D10DDI_HQUERY hQuery);4748void APIENTRY QueryBegin(D3D10DDI_HDEVICE hDevice, D3D10DDI_HQUERY hQuery);4950void APIENTRY QueryEnd(D3D10DDI_HDEVICE hDevice, D3D10DDI_HQUERY hQuery);5152void APIENTRY QueryGetData(D3D10DDI_HDEVICE hDevice, D3D10DDI_HQUERY hQuery,53__out_bcount_full_opt (DataSize) void *pData,54UINT DataSize, UINT Flags);5556void APIENTRY SetPredication(D3D10DDI_HDEVICE hDevice, D3D10DDI_HQUERY hQuery,57BOOL PredicateValue);5859void APIENTRY CheckCounterInfo(D3D10DDI_HDEVICE hDevice,60__out D3D10DDI_COUNTER_INFO *pCounterInfo);6162void APIENTRY CheckCounter(D3D10DDI_HDEVICE hDevice,63D3D10DDI_QUERY Query,64__out D3D10DDI_COUNTER_TYPE *pCounterType,65__out UINT *pActiveCounters,66__out_ecount_part_z_opt (*pNameLength, *pNameLength) LPSTR pName,67__inout_opt UINT *pNameLength,68__out_ecount_part_z_opt (*pUnitsLength, *pUnitsLength) LPSTR pUnits,69__inout_opt UINT *pUnitsLength,70__out_ecount_part_z_opt (*pDescriptionLength, *pDescriptionLength) LPSTR pDescription,71__inout_opt UINT* pDescriptionLength);7273BOOL CheckPredicate(Device *pDevice);7475#endif /* QUERY_H */767778