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
Commits
a3ba63fc
Commit
a3ba63fc
authored
2 years ago
by
Julius Nehring-Wirxel
Browse files
Options
Downloads
Patches
Plain Diff
Change std::vector to std::initializer_list
parent
a7bc22c2
No related branches found
No related tags found
1 merge request
!41
Add api using cc::span for all functions that take contiguous ranges
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/glow/objects/Program.hh
+2
-2
2 additions, 2 deletions
src/glow/objects/Program.hh
with
2 additions
and
2 deletions
src/glow/objects/Program.hh
+
2
−
2
View file @
a3ba63fc
...
...
@@ -246,9 +246,9 @@ public:
/// Configures this shader for use with transform feedback
/// NOTE: cannot be done while shader is in use
void
configureTransformFeedback
(
cc
::
span
<
std
::
string
const
>
varyings
,
GLenum
bufferMode
=
GL_INTERLEAVED_ATTRIBS
);
void
configureTransformFeedback
(
std
::
vector
<
std
::
string
>
const
&
varyings
,
GLenum
bufferMode
=
GL_INTERLEAVED_ATTRIBS
)
void
configureTransformFeedback
(
std
::
initializer_list
<
std
::
string
>
varyings
,
GLenum
bufferMode
=
GL_INTERLEAVED_ATTRIBS
)
{
configureTransformFeedback
(
cc
::
span
(
varyings
),
bufferMode
);
configureTransformFeedback
(
cc
::
span
(
varyings
.
begin
(),
varyings
.
size
()
),
bufferMode
);
}
/// Returns true if transform feedback can be used
bool
isConfiguredForTransformFeedback
()
const
{
return
mTransformFeedbackVaryings
.
size
()
>
0
;
}
...
...
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