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
f20bc216
Commit
f20bc216
authored
May 31, 2012
by
daniel@transgaming.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an IsDepthFormat helper function
Trac #20875 Signed-off-by: Nicolas Capens git-svn-id:
https://angleproject.googlecode.com/svn/trunk@1111
736b8ea6-26fd-11df-bfd4-992fa37f6226
parent
08bfcc47
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
utilities.cpp
src/libGLESv2/utilities.cpp
+10
-0
utilities.h
src/libGLESv2/utilities.h
+2
-0
No files found.
src/libGLESv2/utilities.cpp
View file @
f20bc216
...
@@ -993,6 +993,16 @@ bool IsFloat16Format(D3DFORMAT surfaceFormat)
...
@@ -993,6 +993,16 @@ bool IsFloat16Format(D3DFORMAT surfaceFormat)
return
false
;
return
false
;
}
}
bool
IsDepthFormat
(
D3DFORMAT
surfaceFormat
)
{
return
(
surfaceFormat
==
D3DFMT_INTZ
);
}
bool
IsStencilFormat
(
D3DFORMAT
surfaceFormat
)
{
return
(
surfaceFormat
==
D3DFMT_INTZ
);
}
GLsizei
GetSamplesFromMultisampleType
(
D3DMULTISAMPLE_TYPE
type
)
GLsizei
GetSamplesFromMultisampleType
(
D3DMULTISAMPLE_TYPE
type
)
{
{
if
(
type
==
D3DMULTISAMPLE_NONMASKABLE
)
if
(
type
==
D3DMULTISAMPLE_NONMASKABLE
)
...
...
src/libGLESv2/utilities.h
View file @
f20bc216
...
@@ -83,6 +83,8 @@ GLuint GetDepthSize(D3DFORMAT depthFormat);
...
@@ -83,6 +83,8 @@ GLuint GetDepthSize(D3DFORMAT depthFormat);
GLuint
GetStencilSize
(
D3DFORMAT
stencilFormat
);
GLuint
GetStencilSize
(
D3DFORMAT
stencilFormat
);
bool
IsFloat32Format
(
D3DFORMAT
surfaceFormat
);
bool
IsFloat32Format
(
D3DFORMAT
surfaceFormat
);
bool
IsFloat16Format
(
D3DFORMAT
surfaceFormat
);
bool
IsFloat16Format
(
D3DFORMAT
surfaceFormat
);
bool
IsDepthFormat
(
D3DFORMAT
surfaceFormat
);
bool
IsStencilFormat
(
D3DFORMAT
surfaceFormat
);
GLsizei
GetSamplesFromMultisampleType
(
D3DMULTISAMPLE_TYPE
type
);
GLsizei
GetSamplesFromMultisampleType
(
D3DMULTISAMPLE_TYPE
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