Inertia's picture

[GL3.3] Timer Query

Project:The Open Toolkit library
Version:1.1-2014-01-02
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
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.

the Fiddler's picture

#2

Version:1.x-dev» 1.1-2014-01-02
Status:fixed» closed

Closing issues fixed in OpenTK 1.1.

If this is still an issue please file a new bug report at https://github.com/opentk/opentk/issues