Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
ed834895
Unverified
Commit
ed834895
authored
Mar 30, 2018
by
John Kessenich
Committed by
GitHub
Mar 30, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1327 from mattparks/patch2
Added getter for uniform block bindings
parents
fbdba369
21993569
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
ShaderLang.cpp
glslang/MachineIndependent/ShaderLang.cpp
+1
-0
ShaderLang.h
glslang/Public/ShaderLang.h
+1
-0
No files found.
glslang/MachineIndependent/ShaderLang.cpp
View file @
ed834895
...
@@ -1925,6 +1925,7 @@ const char* TProgram::getUniformBlockName(int index) const { return reflection
...
@@ -1925,6 +1925,7 @@ const char* TProgram::getUniformBlockName(int index) const { return reflection
int
TProgram
::
getUniformBlockSize
(
int
index
)
const
{
return
reflection
->
getUniformBlock
(
index
).
size
;
}
int
TProgram
::
getUniformBlockSize
(
int
index
)
const
{
return
reflection
->
getUniformBlock
(
index
).
size
;
}
int
TProgram
::
getUniformIndex
(
const
char
*
name
)
const
{
return
reflection
->
getIndex
(
name
);
}
int
TProgram
::
getUniformIndex
(
const
char
*
name
)
const
{
return
reflection
->
getIndex
(
name
);
}
int
TProgram
::
getUniformBinding
(
int
index
)
const
{
return
reflection
->
getUniform
(
index
).
getBinding
();
}
int
TProgram
::
getUniformBinding
(
int
index
)
const
{
return
reflection
->
getUniform
(
index
).
getBinding
();
}
int
TProgram
::
getUniformBlockBinding
(
int
index
)
const
{
return
reflection
->
getUniformBlock
(
index
).
getBinding
();
}
int
TProgram
::
getUniformBlockIndex
(
int
index
)
const
{
return
reflection
->
getUniform
(
index
).
index
;
}
int
TProgram
::
getUniformBlockIndex
(
int
index
)
const
{
return
reflection
->
getUniform
(
index
).
index
;
}
int
TProgram
::
getUniformBlockCounterIndex
(
int
index
)
const
{
return
reflection
->
getUniformBlock
(
index
).
counterIndex
;
}
int
TProgram
::
getUniformBlockCounterIndex
(
int
index
)
const
{
return
reflection
->
getUniformBlock
(
index
).
counterIndex
;
}
int
TProgram
::
getUniformType
(
int
index
)
const
{
return
reflection
->
getUniform
(
index
).
glDefineType
;
}
int
TProgram
::
getUniformType
(
int
index
)
const
{
return
reflection
->
getUniform
(
index
).
glDefineType
;
}
...
...
glslang/Public/ShaderLang.h
View file @
ed834895
...
@@ -671,6 +671,7 @@ public:
...
@@ -671,6 +671,7 @@ public:
int
getUniformBlockSize
(
int
blockIndex
)
const
;
// can be used for glGetActiveUniformBlockiv(UNIFORM_BLOCK_DATA_SIZE)
int
getUniformBlockSize
(
int
blockIndex
)
const
;
// can be used for glGetActiveUniformBlockiv(UNIFORM_BLOCK_DATA_SIZE)
int
getUniformIndex
(
const
char
*
name
)
const
;
// can be used for glGetUniformIndices()
int
getUniformIndex
(
const
char
*
name
)
const
;
// can be used for glGetUniformIndices()
int
getUniformBinding
(
int
index
)
const
;
// returns the binding number
int
getUniformBinding
(
int
index
)
const
;
// returns the binding number
int
getUniformBlockBinding
(
int
index
)
const
;
// returns the block binding number
int
getUniformBlockIndex
(
int
index
)
const
;
// can be used for glGetActiveUniformsiv(GL_UNIFORM_BLOCK_INDEX)
int
getUniformBlockIndex
(
int
index
)
const
;
// can be used for glGetActiveUniformsiv(GL_UNIFORM_BLOCK_INDEX)
int
getUniformBlockCounterIndex
(
int
index
)
const
;
// returns block index of associated counter.
int
getUniformBlockCounterIndex
(
int
index
)
const
;
// returns block index of associated counter.
int
getUniformType
(
int
index
)
const
;
// can be used for glGetActiveUniformsiv(GL_UNIFORM_TYPE)
int
getUniformType
(
int
index
)
const
;
// can be used for glGetActiveUniformsiv(GL_UNIFORM_TYPE)
...
...
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