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
39cd9f74
Commit
39cd9f74
authored
Oct 21, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Add an initial implementation of D3D10CreateDevice().
parent
b2d20154
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
d3d10.spec
dlls/d3d10/d3d10.spec
+1
-1
d3d10_main.c
dlls/d3d10/d3d10_main.c
+24
-0
d3d10misc.h
include/d3d10misc.h
+3
-0
No files found.
dlls/d3d10/d3d10.spec
View file @
39cd9f74
@ stub D3D10CompileEffectFromMemory
@ stub D3D10CompileShader
@ stub D3D10CreateBlob
@ st
ub D3D10CreateDevice
@ st
dcall D3D10CreateDevice(ptr long ptr long long ptr)
@ stub D3D10CreateDeviceAndSwapChain
@ stub D3D10CreateEffectFromMemory
@ stub D3D10CreateEffectPoolFromMemory
...
...
dlls/d3d10/d3d10_main.c
View file @
39cd9f74
...
...
@@ -40,3 +40,27 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
}
return
TRUE
;
}
HRESULT
WINAPI
D3D10CreateDevice
(
IDXGIAdapter
*
adapter
,
D3D10_DRIVER_TYPE
driver_type
,
HMODULE
swrast
,
UINT
flags
,
UINT
sdk_version
,
ID3D10Device
**
device
)
{
struct
d3d10_device
*
object
;
FIXME
(
"adapter %p, driver_type %s, swrast %p, flags %#x, sdk_version %d, device %p partial stub!
\n
"
,
adapter
,
debug_d3d10_driver_type
(
driver_type
),
swrast
,
flags
,
sdk_version
,
device
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
!
object
)
{
ERR
(
"Failed to allocate D3D device object memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
vtbl
=
&
d3d10_device_vtbl
;
object
->
refcount
=
1
;
*
device
=
(
ID3D10Device
*
)
object
;
TRACE
(
"Created ID3D10Device %p
\n
"
,
object
);
return
S_OK
;
}
include/d3d10misc.h
View file @
39cd9f74
...
...
@@ -32,6 +32,9 @@ typedef enum D3D10_DRIVER_TYPE {
D3D10_DRIVER_TYPE_SOFTWARE
=
3
,
}
D3D10_DRIVER_TYPE
;
HRESULT
WINAPI
D3D10CreateDevice
(
IDXGIAdapter
*
adapter
,
D3D10_DRIVER_TYPE
driver_type
,
HMODULE
swrast
,
UINT
flags
,
UINT
sdk_version
,
ID3D10Device
**
device
);
#ifdef __cplusplus
}
#endif
...
...
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