static inline DWORD nine_query_result_size(D3DQUERYTYPE type) { switch (type) { GET_DATA_SIZE_CASE2(VERTEXSTATS, D3DVERTEXSTATS); GET_DATA_SIZE_CASET(EVENT, BOOL); GET_DATA_SIZE_CASET(OCCLUSION, DWORD); GET_DATA_SIZE_CASET(TIMESTAMP, UINT64); GET_DATA_SIZE_CASET(TIMESTAMPDISJOINT, BOOL); GET_DATA_SIZE_CASET(TIMESTAMPFREQ, UINT64); default: assert(0); return 0; } }
static INLINE DWORD nine_query_result_size(D3DQUERYTYPE type) { switch (type) { GET_DATA_SIZE_CASE1(VCACHE); GET_DATA_SIZE_CASE1(RESOURCEMANAGER); GET_DATA_SIZE_CASE2(VERTEXSTATS, D3DVERTEXSTATS); GET_DATA_SIZE_CASET(EVENT, BOOL); GET_DATA_SIZE_CASET(OCCLUSION, DWORD); GET_DATA_SIZE_CASET(TIMESTAMP, UINT64); GET_DATA_SIZE_CASET(TIMESTAMPDISJOINT, BOOL); GET_DATA_SIZE_CASET(TIMESTAMPFREQ, UINT64); GET_DATA_SIZE_CASE9(PIPELINETIMINGS); GET_DATA_SIZE_CASE9(INTERFACETIMINGS); GET_DATA_SIZE_CASE2(VERTEXTIMINGS, D3D9STAGETIMINGS); GET_DATA_SIZE_CASE2(PIXELTIMINGS, D3D9STAGETIMINGS); GET_DATA_SIZE_CASE9(BANDWIDTHTIMINGS); GET_DATA_SIZE_CASE9(CACHEUTILIZATION); /* GET_DATA_SIZE_CASE1(MEMORYPRESSURE); Win7 only */ default: assert(0); return 0; } }