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
0130eca6
Commit
0130eca6
authored
Feb 12, 2013
by
Austin English
Committed by
Alexandre Julliard
Feb 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Add a stub for D3D11CreateDevice.
parent
9f3ff924
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
1 deletion
+60
-1
Makefile.in
dlls/d3d11/Makefile.in
+3
-0
d3d11.spec
dlls/d3d11/d3d11.spec
+1
-1
d3d11_main.c
dlls/d3d11/d3d11_main.c
+56
-0
No files found.
dlls/d3d11/Makefile.in
View file @
0130eca6
MODULE
=
d3d11.dll
C_SRCS
=
\
d3d11_main.c
@MAKE_DLL_RULES@
dlls/d3d11/d3d11.spec
View file @
0130eca6
...
...
@@ -2,7 +2,7 @@
@ stub D3D11CoreCreateLayeredDevice
@ stub D3D11CoreGetLayeredDeviceSize
@ stub D3D11CoreRegisterLayers
@ st
ub D3D11CreateDevice
@ st
dcall D3D11CreateDevice(ptr long ptr long long long long ptr ptr ptr)
@ stub D3D11CreateDeviceAndSwapChain
@ stub D3DKMTCloseAdapter
@ stub D3DKMTCreateAllocation
...
...
dlls/d3d11/d3d11_main.c
0 → 100644
View file @
0130eca6
/*
* Direct3D 11
*
* Copyright 2013 Austin English
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "d3d11.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d11
);
const
char
*
debug_d3d_driver_type
(
D3D_DRIVER_TYPE
driver_type
)
{
switch
(
driver_type
)
{
#define D3D11_TO_STR(x) case x: return #x
D3D11_TO_STR
(
D3D_DRIVER_TYPE_UNKNOWN
);
D3D11_TO_STR
(
D3D_DRIVER_TYPE_HARDWARE
);
D3D11_TO_STR
(
D3D_DRIVER_TYPE_REFERENCE
);
D3D11_TO_STR
(
D3D_DRIVER_TYPE_NULL
);
D3D11_TO_STR
(
D3D_DRIVER_TYPE_SOFTWARE
);
D3D11_TO_STR
(
D3D_DRIVER_TYPE_WARP
);
#undef D3D11_TO_STR
default:
return
wine_dbg_sprintf
(
"Unrecognized D3D_DRIVER_TYPE %#x
\n
"
,
driver_type
);
}
}
HRESULT
WINAPI
D3D11CreateDevice
(
IDXGIAdapter
*
adapter
,
D3D_DRIVER_TYPE
driver_type
,
HMODULE
swrast
,
UINT
flags
,
const
D3D_FEATURE_LEVEL
feature_levels
,
UINT
levels
,
UINT
sdk_version
,
ID3D11Device
**
device
,
D3D_FEATURE_LEVEL
*
feature_level
,
ID3D11DeviceContext
**
context
)
{
FIXME
(
"stub: adapter %p, driver_type %s, swrast %p, flags %#x, feature_levels %d, levels %#x, sdk_version %d, "
"device %p, feature_level %p, context %p
\n
"
,
adapter
,
debug_d3d_driver_type
(
driver_type
),
swrast
,
flags
,
feature_levels
,
levels
,
sdk_version
,
device
,
feature_level
,
context
);
return
E_OUTOFMEMORY
;
}
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