Inertia's picture

[GL3.3] Timer Query

Project:The Open Toolkit library
Version:1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:fixed
Description

http://www.opengl.org/registry/specs/ARB/timer_query.txt

Add to enum QueryTarget:

TIME_ELAPSED 0x88BF
TIMESTAMP 0x8E28

Note: The Timestamp token is only legit to use with GetQueryiv command, not Begin-/End-Query commands. Separate enums?

Add to enum GetPName:

TIMESTAMP 0x8E28

Functions:

C: void QueryCounter(uint id, enum target);
New: void QueryCounter(uint id, QueryCounterTarget target);

enum QueryCounterTarget
{
TIMESTAMP 0x8E28
}

C: void GetQueryObjecti64v(uint id, enum pname, int64 *params);
New: void GetQueryObjecti64v(uint id, GetQueryObjectParam pname, int64 *params);

C: void GetQueryObjectui64v(uint id, enum pname, uint64 *params);
New: void GetQueryObjectui64v(uint id, GetQueryObjectParam pname, uint64 *params);


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

Status:open» fixed

Fixed in gl4 branch, r2934. I didn't separate GetQuery vs BeginQuery targets into new enums, as that would break compatibility.