Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
2e1cf4d9
Commit
2e1cf4d9
authored
Sep 05, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add support for R32F and R16F texture formats.
parent
de54843d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
directx.c
dlls/wined3d/directx.c
+2
-2
utils.c
dlls/wined3d/utils.c
+2
-2
wined3d_gl.h
include/wine/wined3d_gl.h
+2
-0
No files found.
dlls/wined3d/directx.c
View file @
2e1cf4d9
...
...
@@ -1650,8 +1650,10 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
BOOL
half_pixel_support
=
GL_SUPPORT
(
ARB_HALF_FLOAT_PIXEL
);
switch
(
CheckFormat
)
{
case
D3DFMT_R16F
:
case
D3DFMT_A16B16G16R16F
:
if
(
!
half_pixel_support
)
break
;
case
D3DFMT_R32F
:
case
D3DFMT_A32B32G32R32F
:
TRACE_
(
d3d_caps
)(
"[OK]
\n
"
);
return
WINED3D_OK
;
...
...
@@ -1748,9 +1750,7 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
/*****
* Float formats: Not supported right now
*/
case
WINED3DFMT_R16F
:
case
WINED3DFMT_G16R16F
:
case
WINED3DFMT_R32F
:
case
WINED3DFMT_G32R32F
:
case
WINED3DFMT_CxV8U8
:
TRACE_
(
d3d_caps
)(
"[FAILED]
\n
"
);
/* Enable when implemented */
...
...
dlls/wined3d/utils.c
View file @
2e1cf4d9
...
...
@@ -47,13 +47,13 @@ static const PixelFormatDesc formats[] = {
{
WINED3DFMT_G8R8_G8B8
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
TRUE
,
0
,
0
,
0
},
{
WINED3DFMT_R8G8_B8G8
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
TRUE
,
0
,
0
,
0
},
/* IEEE formats */
{
WINED3DFMT_R32F
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_R32F
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_RGB32F_ARB
,
GL_RED
,
GL_FLOAT
},
{
WINED3DFMT_G32R32F
,
0x0
,
0x0
,
0x0
,
0x0
,
8
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_A32B32G32R32F
,
0x0
,
0x0
,
0x0
,
0x0
,
16
,
FALSE
,
GL_RGBA32F_ARB
,
GL_RGBA
,
GL_FLOAT
},
/* Hmm? */
{
WINED3DFMT_CxV8U8
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
0
,
0
,
0
},
/* Float */
{
WINED3DFMT_R16F
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_R16F
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_RGB16F_ARB
,
GL_RED
,
GL_HALF_FLOAT_ARB
},
{
WINED3DFMT_G16R16F
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_A16B16G16R16F
,
0x0
,
0x0
,
0x0
,
0x0
,
8
,
FALSE
,
GL_RGBA16F_ARB
,
GL_RGBA
,
GL_HALF_FLOAT_ARB
},
/* Palettized formats */
...
...
include/wine/wined3d_gl.h
View file @
2e1cf4d9
...
...
@@ -477,7 +477,9 @@ typedef void (APIENTRY * PGLFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint leve
#ifndef GL_ARB_texture_float
#define GL_ARB_texture_float 1
#define GL_RGBA32F_ARB 0x8814
#define GL_RGB32F_ARB 0x8815
#define GL_RGBA16F_ARB 0x881A
#define GL_RGB16F_ARB 0x881B
#endif
/* GL_ARB_half_float_pixel */
#ifndef GL_ARB_half_float_pixel
...
...
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