typedef enum D3D10_QUERY {
D3D10_QUERY_EVENT = 0,
D3D10_QUERY_OCCLUSION = (D3D10_QUERY_EVENT + 1),
D3D10_QUERY_TIMESTAMP = (D3D10_QUERY_OCCLUSION + 1),
D3D10_QUERY_TIMESTAMP_DISJOINT = (D3D10_QUERY_TIMESTAMP + 1),
D3D10_QUERY_PIPELINE_STATISTICS = (D3D10_QUERY_TIMESTAMP_DISJOINT + 1),
D3D10_QUERY_OCCLUSION_PREDICATE = (D3D10_QUERY_PIPELINE_STATISTICS + 1),
D3D10_QUERY_TIMESTAMP_PREDICATE = (D3D10_QUERY_OCCLUSION_PREDICATE + 1),
D3D10_QUERY_TIMESTAMP_FREQUENCY = (D3D10_QUERY_TIMESTAMP_PREDICATE + 1),
D3D10_QUERY_COUNTER_DEVICE_GENERATION = 0xffffffff
} D3D10_QUERY;
这些常量用于创建查询对象,以便在图形渲染中获取特定的性能和状态信息。例如,D3D10_QUERY_OCCLUSION 可以用于检查在某个区域内有多少像素被绘制。D3D10_QUERY_PIPELINE_STATISTICS 可以用于获取渲染管线的统计信息,如顶点和像素着色器的执行次数等。
请注意,这些查询类型的使用可能会因硬件和驱动程序的不同而有所差异,因此建议在实际使用时查阅相关文档以获取详细信息。
转载请注明出处:http://www.zyzy.cn/article/detail/25541/Win32 API/D3d10.h/D3D10_QUERY