Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
086d9498
Commit
086d9498
authored
Dec 18, 2008
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Dec 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add GL_RG16F / GL_RG32F support using ARB_texture_rg.
parent
331fe08b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
directx.c
dlls/wined3d/directx.c
+4
-0
utils.c
dlls/wined3d/utils.c
+2
-2
No files found.
dlls/wined3d/directx.c
View file @
086d9498
...
...
@@ -2361,6 +2361,10 @@ static BOOL CheckTextureCapability(UINT Adapter, WINED3DDEVTYPE DeviceType, WINE
case
WINED3DFMT_G16R16F
:
case
WINED3DFMT_G32R32F
:
if
(
GL_SUPPORT
(
ARB_TEXTURE_RG
))
{
TRACE_
(
d3d_caps
)(
"[OK]
\n
"
);
return
TRUE
;
}
TRACE_
(
d3d_caps
)(
"[FAILED]
\n
"
);
return
FALSE
;
...
...
dlls/wined3d/utils.c
View file @
086d9498
...
...
@@ -167,7 +167,7 @@ static const GlPixelFormatDescTemplate gl_formats_template[] = {
/* IEEE formats */
{
WINED3DFMT_R32F
,
GL_RGB32F_ARB
,
GL_RGB32F_ARB
,
0
,
GL_RED
,
GL_FLOAT
,
WINED3DFMT_FLAG_RENDERTARGET
},
{
WINED3DFMT_G32R32F
,
0
,
0
,
0
,
0
,
0
{
WINED3DFMT_G32R32F
,
GL_RG32F
,
GL_RG32F
,
0
,
GL_RG
,
GL_FLOAT
,
WINED3DFMT_FLAG_RENDERTARGET
},
{
WINED3DFMT_A32B32G32R32F
,
GL_RGBA32F_ARB
,
GL_RGBA32F_ARB
,
0
,
GL_RGBA
,
GL_FLOAT
,
WINED3DFMT_FLAG_RENDERTARGET
},
...
...
@@ -177,7 +177,7 @@ static const GlPixelFormatDescTemplate gl_formats_template[] = {
/* Float */
{
WINED3DFMT_R16F
,
GL_RGB16F_ARB
,
GL_RGB16F_ARB
,
0
,
GL_RED
,
GL_HALF_FLOAT_ARB
,
WINED3DFMT_FLAG_FILTERING
|
WINED3DFMT_FLAG_RENDERTARGET
},
{
WINED3DFMT_G16R16F
,
0
,
0
,
0
,
0
,
0
{
WINED3DFMT_G16R16F
,
GL_RG16F
,
GL_RG16F
,
0
,
GL_RG
,
GL_HALF_FLOAT_ARB
,
WINED3DFMT_FLAG_FILTERING
|
WINED3DFMT_FLAG_RENDERTARGET
},
{
WINED3DFMT_A16B16G16R16F
,
GL_RGBA16F_ARB
,
GL_RGBA16F_ARB
,
0
,
GL_RGBA
,
GL_HALF_FLOAT_ARB
,
WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING
|
WINED3DFMT_FLAG_FILTERING
|
WINED3DFMT_FLAG_RENDERTARGET
},
...
...
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