示例#1
0
void PerfQuery::CreateDeviceObjects()
{
	for (int i = 0; i != ArraySize(m_query_buffer); ++i)
	{
		D3D::dev->CreateQuery(D3DQUERYTYPE_OCCLUSION, &m_query_buffer[i].query);
	}
	ResetQuery();
}
示例#2
0
ITCursor *OGRIDBTableLayer::GetQuery()

{
    if( poCurr == NULL )
        ResetQuery();

    return poCurr;
}
示例#3
0
PerfQuery::PerfQuery()
    : m_query_read_pos()
    , m_query_count()
{
    for (u32 i = 0; i != ArraySize(m_query_buffer); ++i)
        glGenQueries(1, &m_query_buffer[i].query_id);

    ResetQuery();
}
示例#4
0
PerfQuery::PerfQuery()
	: m_query_read_pos()
	, m_query_count()
{
	for (ActiveQuery& query : m_query_buffer)
		glGenQueries(1, &query.query_id);

	ResetQuery();
}
示例#5
0
PerfQuery::PerfQuery()
	: m_query_read_pos()
	, m_query_count()
{
	for (int i = 0; i != ArraySize(m_query_buffer); ++i)
	{
		D3D11_QUERY_DESC qdesc = CD3D11_QUERY_DESC(D3D11_QUERY_OCCLUSION, 0);
		D3D::device->CreateQuery(&qdesc, &m_query_buffer[i].query);
	}
	ResetQuery();
}
示例#6
0
PerfQuery::PerfQuery()
	: m_query_read_pos()
{
	ResetQuery();
}