Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
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
angle
Commits
3466a4d0
Commit
3466a4d0
authored
Sep 18, 2013
by
Jamie Madill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a helper method to return the number of components in a texture format.
TRAC #23841 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
parent
02f20dd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
formatutils.cpp
src/libGLESv2/formatutils.cpp
+14
-0
formatutils.h
src/libGLESv2/formatutils.h
+1
-0
No files found.
src/libGLESv2/formatutils.cpp
View file @
3466a4d0
...
...
@@ -1344,6 +1344,20 @@ GLuint GetComponentType(GLint internalFormat, GLuint clientVersion)
}
}
GLuint
GetComponentCount
(
GLint
internalFormat
,
GLuint
clientVersion
)
{
InternalFormatInfo
internalFormatInfo
;
if
(
GetInternalFormatInfo
(
internalFormat
,
clientVersion
,
&
internalFormatInfo
))
{
return
internalFormatInfo
.
mComponentCount
;
}
else
{
UNREACHABLE
();
return
false
;
}
}
GLenum
GetColorEncoding
(
GLint
internalFormat
,
GLuint
clientVersion
)
{
InternalFormatInfo
internalFormatInfo
;
...
...
src/libGLESv2/formatutils.h
View file @
3466a4d0
...
...
@@ -66,6 +66,7 @@ GLenum GetFormat(GLint internalFormat, GLuint clientVersion);
GLenum
GetType
(
GLint
internalFormat
,
GLuint
clientVersion
);
GLenum
GetComponentType
(
GLint
internalFormat
,
GLuint
clientVersion
);
GLuint
GetComponentCount
(
GLint
internalFormat
,
GLuint
clientVersion
);
GLenum
GetColorEncoding
(
GLint
internalFormat
,
GLuint
clientVersion
);
bool
IsColorRenderingSupported
(
GLint
internalFormat
,
const
rx
::
Renderer
*
renderer
);
...
...
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