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
f805fb11
Commit
f805fb11
authored
Aug 27, 2015
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi/tests: Test presentation parameter combinations.
parent
142bcb5d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
4 deletions
+28
-4
factory.c
dlls/dxgi/factory.c
+26
-4
device.c
dlls/dxgi/tests/device.c
+0
-0
dxgi.idl
include/dxgi.idl
+2
-0
No files found.
dlls/dxgi/factory.c
View file @
f805fb11
...
...
@@ -190,21 +190,43 @@ static HRESULT STDMETHODCALLTYPE dxgi_factory_CreateSwapChain(IDXGIFactory1 *ifa
struct
wined3d_swapchain_desc
wined3d_desc
;
IWineDXGIDevice
*
dxgi_device
;
HRESULT
hr
;
UINT
min_buffer_count
;
FIXME
(
"iface %p, device %p, desc %p, swapchain %p partial stub!
\n
"
,
iface
,
device
,
desc
,
swapchain
);
hr
=
IUnknown_QueryInterface
(
device
,
&
IID_IWineDXGIDevice
,
(
void
**
)
&
dxgi_device
);
if
(
FAILED
(
hr
))
switch
(
desc
->
SwapEffect
)
{
ERR
(
"This is not the device we're looking for
\n
"
);
return
hr
;
case
DXGI_SWAP_EFFECT_DISCARD
:
case
DXGI_SWAP_EFFECT_SEQUENTIAL
:
min_buffer_count
=
1
;
break
;
case
DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL
:
min_buffer_count
=
2
;
break
;
default:
WARN
(
"Invalid swap effect %u used, returning DXGI_ERROR_INVALID_CALL.
\n
"
,
desc
->
SwapEffect
);
return
DXGI_ERROR_INVALID_CALL
;
}
if
(
desc
->
BufferCount
<
min_buffer_count
||
desc
->
BufferCount
>
16
)
{
WARN
(
"BufferCount is %u, returning DXGI_ERROR_INVALID_CALL.
\n
"
,
desc
->
BufferCount
);
return
DXGI_ERROR_INVALID_CALL
;
}
if
(
!
desc
->
OutputWindow
)
{
FIXME
(
"No output window, should use factory output window
\n
"
);
}
hr
=
IUnknown_QueryInterface
(
device
,
&
IID_IWineDXGIDevice
,
(
void
**
)
&
dxgi_device
);
if
(
FAILED
(
hr
))
{
ERR
(
"This is not the device we're looking for
\n
"
);
return
hr
;
}
FIXME
(
"Ignoring SwapEffect and Flags
\n
"
);
wined3d_desc
.
backbuffer_width
=
desc
->
BufferDesc
.
Width
;
...
...
dlls/dxgi/tests/device.c
View file @
f805fb11
This diff is collapsed.
Click to expand it.
include/dxgi.idl
View file @
f805fb11
...
...
@@ -60,6 +60,8 @@ const DXGI_USAGE DXGI_USAGE_RENDER_TARGET_OUTPUT = 0x20L;
const
DXGI_USAGE
DXGI_USAGE_BACK_BUFFER
=
0
x40L
;
const
DXGI_USAGE
DXGI_USAGE_SHARED
=
0
x80L
;
const
DXGI_USAGE
DXGI_USAGE_READ_ONLY
=
0
x100L
;
const
DXGI_USAGE
DXGI_USAGE_DISCARD_ON_PRESENT
=
0
x200L
;
const
DXGI_USAGE
DXGI_USAGE_UNORDERED_ACCESS
=
0
x400L
;
const
UINT
DXGI_ENUM_MODES_INTERLACED
=
1
;
const
UINT
DXGI_ENUM_MODES_SCALING
=
2
;
...
...
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