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
db8da81e
Commit
db8da81e
authored
Feb 15, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Feb 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add WINED3DDTCAPS flags and use them.
parent
da354c6d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
directx.c
dlls/wined3d/directx.c
+7
-7
wined3d_caps.h
include/wine/wined3d_caps.h
+11
-0
No files found.
dlls/wined3d/directx.c
View file @
db8da81e
...
...
@@ -2280,13 +2280,13 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
* don't advertise it yet as I'm not sure how we handle it.
* We might need to add some clamping in the shader engine to
* support it.
* TODO:
D3DDTCAPS_USHORT2N, D3DDTCAPS_USHORT4N, D3DDTCAPS_UDEC3,
D3DDTCAPS_DEC3N */
*
pCaps
->
DeclTypes
=
D3DDTCAPS_UBYTE4
|
D3DDTCAPS_UBYTE4N
|
D3DDTCAPS_SHORT2N
|
D3DDTCAPS_SHORT4N
|
D3DDTCAPS_FLOAT16_2
|
D3DDTCAPS_FLOAT16_4
;
* TODO:
WINED3DDTCAPS_USHORT2N, WINED3DDTCAPS_USHORT4N, WINED3DDTCAPS_UDEC3, WINE
D3DDTCAPS_DEC3N */
*
pCaps
->
DeclTypes
=
WINE
D3DDTCAPS_UBYTE4
|
WINE
D3DDTCAPS_UBYTE4N
|
WINE
D3DDTCAPS_SHORT2N
|
WINE
D3DDTCAPS_SHORT4N
|
WINE
D3DDTCAPS_FLOAT16_2
|
WINE
D3DDTCAPS_FLOAT16_4
;
}
else
*
pCaps
->
DeclTypes
=
0
;
...
...
include/wine/wined3d_caps.h
View file @
db8da81e
...
...
@@ -19,6 +19,17 @@
#ifndef __WINE_WINED3D_CAPS_H
#define __WINE_WINED3D_CAPS_H
#define WINED3DDTCAPS_UBYTE4 0x00000001
#define WINED3DDTCAPS_UBYTE4N 0x00000002
#define WINED3DDTCAPS_SHORT2N 0x00000004
#define WINED3DDTCAPS_SHORT4N 0x00000008
#define WINED3DDTCAPS_USHORT2N 0x00000010
#define WINED3DDTCAPS_USHORT4N 0x00000020
#define WINED3DDTCAPS_UDEC3 0x00000040
#define WINED3DDTCAPS_DEC3N 0x00000080
#define WINED3DDTCAPS_FLOAT16_2 0x00000100
#define WINED3DDTCAPS_FLOAT16_4 0x00000200
#define WINED3DLINECAPS_TEXTURE 0x00000001
#define WINED3DLINECAPS_ZTEST 0x00000002
#define WINED3DLINECAPS_BLEND 0x00000004
...
...
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