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
d29f263c
Commit
d29f263c
authored
Aug 06, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Introduce a helper function to convert wined3d multisample info to dxgi.
parent
fbc8f596
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
dxgi_private.h
dlls/dxgi/dxgi_private.h
+2
-0
swapchain.c
dlls/dxgi/swapchain.c
+1
-2
utils.c
dlls/dxgi/utils.c
+7
-0
No files found.
dlls/dxgi/dxgi_private.h
View file @
d29f263c
...
...
@@ -76,6 +76,8 @@ const char *debug_dxgi_format(DXGI_FORMAT format) DECLSPEC_HIDDEN;
DXGI_FORMAT
dxgi_format_from_wined3dformat
(
enum
wined3d_format_id
format
)
DECLSPEC_HIDDEN
;
enum
wined3d_format_id
wined3dformat_from_dxgi_format
(
DXGI_FORMAT
format
)
DECLSPEC_HIDDEN
;
void
dxgi_sample_desc_from_wined3d
(
DXGI_SAMPLE_DESC
*
desc
,
enum
wined3d_multisample_type
wined3d_type
,
unsigned
int
wined3d_quality
)
DECLSPEC_HIDDEN
;
void
wined3d_sample_desc_from_dxgi
(
enum
wined3d_multisample_type
*
wined3d_type
,
unsigned
int
*
wined3d_quality
,
const
DXGI_SAMPLE_DESC
*
dxgi_desc
)
DECLSPEC_HIDDEN
;
HRESULT
dxgi_get_private_data
(
struct
wined3d_private_store
*
store
,
...
...
dlls/dxgi/swapchain.c
View file @
d29f263c
...
...
@@ -205,8 +205,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_swapchain_GetDesc(IDXGISwapChain *iface, D
desc
->
BufferDesc
.
Format
=
dxgi_format_from_wined3dformat
(
wined3d_desc
.
backbuffer_format
);
desc
->
BufferDesc
.
ScanlineOrdering
=
DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED
;
desc
->
BufferDesc
.
Scaling
=
DXGI_MODE_SCALING_UNSPECIFIED
;
desc
->
SampleDesc
.
Count
=
wined3d_desc
.
multisample_type
;
desc
->
SampleDesc
.
Quality
=
wined3d_desc
.
multisample_quality
;
dxgi_sample_desc_from_wined3d
(
&
desc
->
SampleDesc
,
wined3d_desc
.
multisample_type
,
wined3d_desc
.
multisample_quality
);
desc
->
BufferCount
=
wined3d_desc
.
backbuffer_count
;
desc
->
OutputWindow
=
wined3d_desc
.
device_window
;
desc
->
Windowed
=
wined3d_desc
.
windowed
;
...
...
dlls/dxgi/utils.c
View file @
d29f263c
...
...
@@ -325,6 +325,13 @@ enum wined3d_format_id wined3dformat_from_dxgi_format(DXGI_FORMAT format)
}
}
void
dxgi_sample_desc_from_wined3d
(
DXGI_SAMPLE_DESC
*
desc
,
enum
wined3d_multisample_type
wined3d_type
,
unsigned
int
wined3d_quality
)
{
desc
->
Count
=
wined3d_type
==
WINED3D_MULTISAMPLE_NONE
?
1
:
wined3d_type
;
desc
->
Quality
=
wined3d_quality
;
}
void
wined3d_sample_desc_from_dxgi
(
enum
wined3d_multisample_type
*
wined3d_type
,
unsigned
int
*
wined3d_quality
,
const
DXGI_SAMPLE_DESC
*
dxgi_desc
)
{
...
...
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