Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glow-samples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
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
Julian Schakib
glow-samples
Commits
4f971804
Commit
4f971804
authored
5 years ago
by
Philip Trettner
Browse files
Options
Downloads
Patches
Plain Diff
added color4 test
parent
58c42b9d
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
extern/glow
+1
-1
1 addition, 1 deletion
extern/glow
extern/glow-extras
+1
-1
1 addition, 1 deletion
extern/glow-extras
tests/glow/uniforms.cc
+6
-0
6 additions, 0 deletions
tests/glow/uniforms.cc
with
8 additions
and
2 deletions
glow
@
b8e35932
Subproject commit
7bdd20e13f1dc1d824a339d3fb4eba1e2dc8dd4b
Subproject commit
b8e3593231651b03257456ed820e624e04bde003
This diff is collapsed.
Click to expand it.
glow-extras
@
a206c554
Subproject commit
65a7989156d719fb592c3291d08b8b6f2c657763
Subproject commit
a206c554b84fce0db8bd0085590ef756d2f43fe8
This diff is collapsed.
Click to expand it.
tests/glow/uniforms.cc
+
6
−
0
View file @
4f971804
...
...
@@ -32,6 +32,7 @@ TEST_CASE("glow uniform interface")
uniform uvec3 uUVec3;
uniform float uFloatCArray[4];
uniform vec3 uDir3;
uniform vec4 uColor4;
void main()
{
...
...
@@ -71,6 +72,7 @@ TEST_CASE("glow uniform interface")
data[i++] = uFloatCArray[2];
data[i++] = uFloatCArray[3];
data[i++] = uDir3[0];
data[i++] = uColor4[0];
}
)"
);
auto
prog
=
glow
::
Program
::
create
(
csh
);
...
...
@@ -123,6 +125,8 @@ TEST_CASE("glow uniform interface")
shader
[
"uDir3"
]
=
tg
::
dir3
::
pos_x
;
shader
[
"uColor4"
]
=
tg
::
color4
::
red
;
shader
.
compute
(
1
);
}
...
...
@@ -177,5 +181,7 @@ TEST_CASE("glow uniform interface")
CHECK
(
data
[
i
++
]
==
7
);
// uDir3
CHECK
(
data
[
i
++
]
==
1
);
// uColor4
CHECK
(
data
[
i
++
]
==
1
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment