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
d28e5a05
Commit
d28e5a05
authored
Feb 19, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Convert between DXGI_FORMAT and WINED3DFORMAT values.
parent
8afd9215
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
d3d10core_private.h
dlls/d3d10core/d3d10core_private.h
+3
-0
device.c
dlls/d3d10core/device.c
+10
-9
utils.c
dlls/d3d10core/utils.c
+0
-0
No files found.
dlls/d3d10core/d3d10core_private.h
View file @
d28e5a05
...
...
@@ -38,6 +38,9 @@
const
char
*
debug_d3d10_primitive_topology
(
D3D10_PRIMITIVE_TOPOLOGY
topology
);
const
char
*
debug_dxgi_format
(
DXGI_FORMAT
format
);
DXGI_FORMAT
dxgi_format_from_wined3dformat
(
WINED3DFORMAT
format
);
WINED3DFORMAT
wined3dformat_from_dxgi_format
(
DXGI_FORMAT
format
);
/* IDirect3D10Device */
extern
const
struct
ID3D10DeviceVtbl
d3d10_device_vtbl
;
extern
const
struct
IUnknownVtbl
d3d10_device_inner_unknown_vtbl
;
...
...
dlls/d3d10core/device.c
View file @
d28e5a05
...
...
@@ -632,10 +632,11 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateTexture2D(ID3D10Device *ifac
wined3d_device
=
IWineDXGIDevice_get_wined3d_device
(
wine_device
);
IWineDXGIDevice_Release
(
wine_device
);
FIXME
(
"Implement DXGI<->wined3d
format and
usage conversion
\n
"
);
FIXME
(
"Implement DXGI<->wined3d usage conversion
\n
"
);
hr
=
IWineD3DDevice_CreateSurface
(
wined3d_device
,
desc
->
Width
,
desc
->
Height
,
desc
->
Format
,
FALSE
,
FALSE
,
0
,
&
object
->
wined3d_surface
,
WINED3DRTYPE_SURFACE
,
desc
->
Usage
,
WINED3DPOOL_DEFAULT
,
hr
=
IWineD3DDevice_CreateSurface
(
wined3d_device
,
desc
->
Width
,
desc
->
Height
,
wined3dformat_from_dxgi_format
(
desc
->
Format
),
FALSE
,
FALSE
,
0
,
&
object
->
wined3d_surface
,
WINED3DRTYPE_SURFACE
,
desc
->
Usage
,
WINED3DPOOL_DEFAULT
,
desc
->
SampleDesc
.
Count
,
desc
->
SampleDesc
.
Quality
,
NULL
,
SURFACE_OPENGL
,
(
IUnknown
*
)
object
);
IWineD3DDevice_Release
(
wined3d_device
);
if
(
FAILED
(
hr
))
...
...
@@ -1156,13 +1157,13 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
"
\t
pool %#x, level %u, face %u, surface %p partial stub!
\n
"
,
iface
,
superior
,
width
,
height
,
format
,
usage
,
pool
,
level
,
face
,
surface
);
FIXME
(
"Implement DXGI<->wined3d
format and
usage conversion
\n
"
);
FIXME
(
"Implement DXGI<->wined3d usage conversion
\n
"
);
desc
.
Width
=
width
;
desc
.
Height
=
height
;
desc
.
MipLevels
=
1
;
desc
.
ArraySize
=
1
;
desc
.
Format
=
format
;
desc
.
Format
=
dxgi_format_from_wined3dformat
(
format
)
;
desc
.
SampleDesc
.
Count
=
1
;
desc
.
SampleDesc
.
Quality
=
0
;
desc
.
Usage
=
usage
;
...
...
@@ -1195,13 +1196,13 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
"
\t
multisample_quality %u, lockable %u, surface %p stub!
\n
"
,
iface
,
superior
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
lockable
,
surface
);
FIXME
(
"Implement DXGI<->wined3d
format and
usage conversion
\n
"
);
FIXME
(
"Implement DXGI<->wined3d usage conversion
\n
"
);
desc
.
Width
=
width
;
desc
.
Height
=
height
;
desc
.
MipLevels
=
1
;
desc
.
ArraySize
=
1
;
desc
.
Format
=
format
;
desc
.
Format
=
dxgi_format_from_wined3dformat
(
format
)
;
desc
.
SampleDesc
.
Count
=
multisample_type
;
desc
.
SampleDesc
.
Quality
=
multisample_quality
;
desc
.
Usage
=
D3D10_USAGE_DEFAULT
;
...
...
@@ -1234,13 +1235,13 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateDepthStencilSurface(IWineD3
"
\t
multisample_quality %u, discard %u, surface %p stub!
\n
"
,
iface
,
superior
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
discard
,
surface
);
FIXME
(
"Implement DXGI<->wined3d
format and
usage conversion
\n
"
);
FIXME
(
"Implement DXGI<->wined3d usage conversion
\n
"
);
desc
.
Width
=
width
;
desc
.
Height
=
height
;
desc
.
MipLevels
=
1
;
desc
.
ArraySize
=
1
;
desc
.
Format
=
format
;
desc
.
Format
=
dxgi_format_from_wined3dformat
(
format
)
;
desc
.
SampleDesc
.
Count
=
multisample_type
;
desc
.
SampleDesc
.
Quality
=
multisample_quality
;
desc
.
Usage
=
D3D10_USAGE_DEFAULT
;
...
...
dlls/d3d10core/utils.c
View file @
d28e5a05
This diff is collapsed.
Click to expand it.
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