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
b472f2d5
Commit
b472f2d5
authored
5 years ago
by
Philip Trettner
Browse files
Options
Downloads
Patches
Plain Diff
new uniform proxy
parent
b6fea4f9
Branches
Branches containing commit
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/typed-geometry
+1
-1
1 addition, 1 deletion
extern/typed-geometry
tests/glow/uniforms.cc
+6
-0
6 additions, 0 deletions
tests/glow/uniforms.cc
with
8 additions
and
2 deletions
glow
@
0c7b279f
Subproject commit
4dc614d68c0eb5b65e5d605720a51aca12541d0e
Subproject commit
0c7b279f5291f1f1aeaaa2d2c938bc1a688d1e29
This diff is collapsed.
Click to expand it.
typed-geometry
@
78c76579
Subproject commit
b694f841b56ad8d95c7a4a58f6efaa4081ad2
fd
6
Subproject commit
78c765799fea9fa305e9cb9eda0ba5cefedae
fd
e
This diff is collapsed.
Click to expand it.
tests/glow/uniforms.cc
+
6
−
0
View file @
b472f2d5
...
...
@@ -31,6 +31,7 @@ TEST_CASE("glow uniform interface")
uniform vec3 uColor3s[3];
uniform uvec3 uUVec3;
uniform float uFloatCArray[4];
uniform vec3 uDir3;
void main()
{
...
...
@@ -69,6 +70,7 @@ TEST_CASE("glow uniform interface")
data[i++] = uFloatCArray[1];
data[i++] = uFloatCArray[2];
data[i++] = uFloatCArray[3];
data[i++] = uDir3[0];
}
)"
);
auto
prog
=
glow
::
Program
::
create
(
csh
);
...
...
@@ -119,6 +121,8 @@ TEST_CASE("glow uniform interface")
float
a
[
4
]
=
{
4
,
5
,
6
,
7
};
shader
.
uniform
<
float
[]
>
(
"uFloatCArray"
)
=
a
;
shader
[
"uDir3"
]
=
tg
::
dir3
::
pos_x
;
shader
.
compute
(
1
);
}
...
...
@@ -171,5 +175,7 @@ TEST_CASE("glow uniform interface")
CHECK
(
data
[
i
++
]
==
5
);
CHECK
(
data
[
i
++
]
==
6
);
CHECK
(
data
[
i
++
]
==
7
);
// uDir3
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