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
08be89da
Commit
08be89da
authored
Jul 16, 2013
by
Nicolas Capens
Committed by
Shannon Woods
Jul 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make all depth formats texture filterable.
TRAC #23532 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods Author: Nicolas Capens
parent
cb127d3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
formatutils.cpp
src/libGLESv2/formatutils.cpp
+3
-2
No files found.
src/libGLESv2/formatutils.cpp
View file @
08be89da
...
...
@@ -624,6 +624,7 @@ struct InternalFormatInfo
formatInfo
.
mStorageType
=
storageType
;
formatInfo
.
mIsDepthRenderable
=
depthRenderable
;
formatInfo
.
mIsStencilRenderable
=
stencilRenderable
;
formatInfo
.
mIsTextureFilterable
=
AlwaysSupported
;
formatInfo
.
mSupportFunction
=
supportFunction
;
return
formatInfo
;
}
...
...
@@ -664,7 +665,7 @@ static InternalFormatInfoMap BuildES3InternalFormatInfoMap()
map
.
insert
(
InternalFormatInfoPair
(
GL_RG8_SNORM
,
InternalFormatInfo
::
RGBAFormat
(
8
,
8
,
0
,
0
,
0
,
GL_RG
,
GL_BYTE
,
NormalizedFixedPoint
,
false
,
NeverSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGB8
,
InternalFormatInfo
::
RGBAFormat
(
8
,
8
,
8
,
0
,
0
,
GL_RGB
,
GL_UNSIGNED_BYTE
,
NormalizedFixedPoint
,
false
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGB8_SNORM
,
InternalFormatInfo
::
RGBAFormat
(
8
,
8
,
8
,
0
,
0
,
GL_RGB
,
GL_BYTE
,
NormalizedFixedPoint
,
false
,
NeverSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGB565
,
InternalFormatInfo
::
RGBAFormat
(
5
,
6
,
5
,
0
,
0
,
GL_RGB
,
GL_UNSIGNED_SHORT_5_5_5_1
,
NormalizedFixedPoint
,
false
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGB565
,
InternalFormatInfo
::
RGBAFormat
(
5
,
6
,
5
,
0
,
0
,
GL_RGB
,
GL_UNSIGNED_SHORT_5_5_5_1
,
NormalizedFixedPoint
,
false
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGBA4
,
InternalFormatInfo
::
RGBAFormat
(
4
,
4
,
4
,
4
,
0
,
GL_RGBA
,
GL_UNSIGNED_SHORT_4_4_4_4
,
NormalizedFixedPoint
,
false
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGB5_A1
,
InternalFormatInfo
::
RGBAFormat
(
5
,
5
,
5
,
1
,
0
,
GL_RGBA
,
GL_UNSIGNED_SHORT_5_5_5_1
,
NormalizedFixedPoint
,
false
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGBA8
,
InternalFormatInfo
::
RGBAFormat
(
8
,
8
,
8
,
8
,
0
,
GL_RGBA
,
GL_UNSIGNED_BYTE
,
NormalizedFixedPoint
,
false
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
...
...
@@ -706,7 +707,7 @@ static InternalFormatInfoMap BuildES3InternalFormatInfoMap()
// Floating point renderability and filtering is provided by OES_texture_float and OES_texture_half_float
// | Internal format | | D |S | Format | Type | Internal fmt | SRGB | Color | Texture | Supported |
// | | | | | | | type | | renderable
| filterable | |
// | | | | | | | type | | renderable | filterable | |
map
.
insert
(
InternalFormatInfoPair
(
GL_R16F
,
InternalFormatInfo
::
RGBAFormat
(
16
,
0
,
0
,
0
,
0
,
GL_RED
,
GL_HALF_FLOAT
,
FloatingPoint
,
false
,
CheckSupport
<&
Context
::
supportsFloat16RenderableTextures
,
&
rx
::
Renderer
::
getFloat16TextureRenderingSupport
>
,
CheckSupport
<&
Context
::
supportsFloat16LinearFilter
,
&
rx
::
Renderer
::
getFloat16TextureFilteringSupport
>
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RG16F
,
InternalFormatInfo
::
RGBAFormat
(
16
,
16
,
0
,
0
,
0
,
GL_RG
,
GL_HALF_FLOAT
,
FloatingPoint
,
false
,
CheckSupport
<&
Context
::
supportsFloat16RenderableTextures
,
&
rx
::
Renderer
::
getFloat16TextureRenderingSupport
>
,
CheckSupport
<&
Context
::
supportsFloat16LinearFilter
,
&
rx
::
Renderer
::
getFloat16TextureFilteringSupport
>
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGB16F
,
InternalFormatInfo
::
RGBAFormat
(
16
,
16
,
16
,
0
,
0
,
GL_RGB
,
GL_HALF_FLOAT
,
FloatingPoint
,
false
,
CheckSupport
<&
Context
::
supportsFloat16RenderableTextures
,
&
rx
::
Renderer
::
getFloat16TextureRenderingSupport
>
,
CheckSupport
<&
Context
::
supportsFloat16LinearFilter
,
&
rx
::
Renderer
::
getFloat16TextureFilteringSupport
>
,
AlwaysSupported
)));
...
...
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