Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
glow
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
77
Issues
77
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glow
glow
Commits
c9fbf316
Commit
c9fbf316
authored
Jan 24, 2020
by
Philip Trettner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rewrote setUniform a bit to solve vs19 problem
parent
9c1af318
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
+4
-5
extern/lodepng/lodepng
extern/lodepng/lodepng
+1
-0
extern/stb/stb
extern/stb/stb
+1
-0
src/glow/common/array_view.hh
src/glow/common/array_view.hh
+0
-3
src/glow/objects/raii/UsedProgram.hh
src/glow/objects/raii/UsedProgram.hh
+2
-2
No files found.
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
Markdown
is supported
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