Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glow
glow
Merge requests
!21
Fix warning and typo in Query.hh
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix warning and typo in Query.hh
feature/jk-dev
into
develop
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Jonathan Kunstwald
requested to merge
feature/jk-dev
into
develop
6 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
develop
version 1
b581726f
6 years ago
develop (base)
and
latest version
latest version
b581726f
1 commit,
6 years ago
version 1
b581726f
1 commit,
6 years ago
1 file
+
5
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/glow/objects/Query.hh
+
5
−
4
Options
@@ -42,15 +42,16 @@ public:
void
begin
()
{
glBeginQuery
(
mTarget
,
mObjectName
);
}
/// end the query
void
end
()
{
glEndQuery
(
mTarget
);
}
/// returns true if the result of the query is available, if not, trying to get the result will stall the CPU
GL
bool
ean
isResultAvailable
()
bool
isResultAvailable
()
{
GLuint
resultAvailable
;
glGetQueryObjectuiv
(
mObjectName
,
GL_QUERY_RESULT_AVAILABLE
,
&
resultAvailable
);
return
(
GLboolean
)
resultAvailable
;
return
resultAvailable
==
GL_TRUE
;
}
/// get the query result, what it is depen
t
s on the query target
/// get the query result, what it is depen
d
s on the query target
GLuint
getResult
()
{
GLuint
queryResult
;
@@ -59,7 +60,7 @@ public:
}
/// get the query result in 64 bit, what it is depen
t
s on the query target
/// get the query result in 64 bit, what it is depen
d
s on the query target
GLuint64
getResult64
()
{
GLuint64
queryResult
;
Loading