Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Glow
glow
Commits
c9fbf316
Commit
c9fbf316
authored
Jan 24, 2020
by
Philip Trettner
Browse files
rewrote setUniform a bit to solve vs19 problem
parent
9c1af318
Changes
4
Hide whitespace changes
Inline
Side-by-side
lodepng
@
116f5b2e
Subproject commit 116f5b2ed7c4a9c6779ae291b79770727cbb11ad
stb
@
e6afb9cb
Subproject commit e6afb9cbae4064da8c3e69af3ff5c4629579c1d2
src/glow/common/array_view.hh
View file @
c9fbf316
...
...
@@ -12,9 +12,6 @@ namespace glow
template
<
class
T
>
struct
array_view
;
template
<
class
Range
>
auto
make_array_view
(
Range
&&
r
);
namespace
detail
{
template
<
class
Range
,
class
T
,
class
=
void
>
...
...
src/glow/objects/raii/UsedProgram.hh
View file @
c9fbf316
...
...
@@ -79,8 +79,8 @@ public: // gl functions with use
}
else
if
constexpr
(
detail
::
can_make_array_view
<
T
>
)
{
auto
view
=
glow
::
make_array_view
(
value
)
;
using
E
=
std
::
remove_const_t
<
typename
decltype
(
view
)
::
element_type
>
;
using
E
=
std
::
decay_t
<
decltype
(
value
.
data
()[
0
])
>
;
auto
view
=
array_view
<
E
const
>
(
value
)
;
uniform
<
E
[]
>
(
name
)
=
view
;
}
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment