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
4ba8261a
Commit
4ba8261a
authored
Nov 12, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Implement D3D10CoreRegisterLayers.
parent
56692e9c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
103 additions
and
2 deletions
+103
-2
Makefile.in
dlls/d3d10core/Makefile.in
+1
-1
d3d10core.spec
dlls/d3d10core/d3d10core.spec
+1
-1
d3d10core_main.c
dlls/d3d10core/d3d10core_main.c
+67
-0
d3d10core_private.h
dlls/d3d10core/d3d10core_private.h
+34
-0
No files found.
dlls/d3d10core/Makefile.in
View file @
4ba8261a
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
d3d10core.dll
IMPORTS
=
dxguid uuid kernel32
IMPORTS
=
dxguid uuid
dxgi
kernel32
C_SRCS
=
\
d3d10core_main.c
\
...
...
dlls/d3d10core/d3d10core.spec
View file @
4ba8261a
@ st
ub D3D10CoreRegisterLayers
@ st
dcall D3D10CoreRegisterLayers()
dlls/d3d10core/d3d10core_main.c
View file @
4ba8261a
...
...
@@ -37,3 +37,70 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
return
TRUE
;
}
static
HRESULT
WINAPI
layer_init
(
enum
dxgi_device_layer_id
id
,
DWORD
*
count
,
DWORD
*
values
)
{
TRACE
(
"id %#x, count %p, values %p
\n
"
,
id
,
count
,
values
);
if
(
id
!=
DXGI_DEVICE_LAYER_D3D10_DEVICE
)
{
WARN
(
"Unknown layer id %#x
\n
"
,
id
);
return
E_NOTIMPL
;
}
return
S_OK
;
}
static
UINT
WINAPI
layer_get_size
(
enum
dxgi_device_layer_id
id
,
struct
layer_get_size_args
*
args
,
DWORD
unknown0
)
{
TRACE
(
"id %#x, args %p, unknown0 %#x
\n
"
,
id
,
args
,
unknown0
);
if
(
id
!=
DXGI_DEVICE_LAYER_D3D10_DEVICE
)
{
WARN
(
"Unknown layer id %#x
\n
"
,
id
);
return
0
;
}
return
sizeof
(
struct
d3d10_device
);
}
static
HRESULT
WINAPI
layer_create
(
enum
dxgi_device_layer_id
id
,
void
**
layer_base
,
DWORD
unknown0
,
void
*
device_object
,
REFIID
riid
,
void
**
device_layer
)
{
struct
d3d10_device
*
object
;
TRACE
(
"id %#x, layer_base %p, unknown0 %#x, device_object %p, riid %s, device_layer %p
\n
"
,
id
,
layer_base
,
unknown0
,
device_object
,
debugstr_guid
(
riid
),
device_layer
);
if
(
id
!=
DXGI_DEVICE_LAYER_D3D10_DEVICE
)
{
WARN
(
"Unknown layer id %#x
\n
"
,
id
);
*
device_layer
=
NULL
;
return
E_NOTIMPL
;
}
object
=
(
struct
d3d10_device
*
)
*
layer_base
;
object
->
vtbl
=
&
d3d10_device_vtbl
;
object
->
inner_unknown_vtbl
=
&
d3d10_device_inner_unkown_vtbl
;
object
->
refcount
=
1
;
object
->
outer_unknown
=
device_object
;
*
device_layer
=
&
object
->
inner_unknown_vtbl
;
TRACE
(
"Created d3d10 device at %p
\n
"
,
object
);
return
S_OK
;
}
HRESULT
WINAPI
D3D10CoreRegisterLayers
(
void
)
{
const
struct
dxgi_device_layer
layers
[]
=
{
{
DXGI_DEVICE_LAYER_D3D10_DEVICE
,
layer_init
,
layer_get_size
,
layer_create
},
};
DXGID3D10RegisterLayers
(
layers
,
sizeof
(
layers
)
/
sizeof
(
*
layers
));
return
S_OK
;
}
dlls/d3d10core/d3d10core_private.h
View file @
4ba8261a
...
...
@@ -43,4 +43,38 @@ struct d3d10_device
LONG
refcount
;
};
/* Layered device */
enum
dxgi_device_layer_id
{
DXGI_DEVICE_LAYER_DEBUG1
=
0x8
,
DXGI_DEVICE_LAYER_THREAD_SAFE
=
0x10
,
DXGI_DEVICE_LAYER_DEBUG2
=
0x20
,
DXGI_DEVICE_LAYER_SWITCH_TO_REF
=
0x30
,
DXGI_DEVICE_LAYER_D3D10_DEVICE
=
0xffffffff
,
};
struct
layer_get_size_args
{
DWORD
unknown0
;
DWORD
unknown1
;
DWORD
*
unknown2
;
DWORD
*
unknown3
;
IDXGIAdapter
*
adapter
;
WORD
interface_major
;
WORD
interface_minor
;
WORD
version_build
;
WORD
version_revision
;
};
struct
dxgi_device_layer
{
enum
dxgi_device_layer_id
id
;
HRESULT
(
WINAPI
*
init
)(
enum
dxgi_device_layer_id
id
,
DWORD
*
count
,
DWORD
*
values
);
UINT
(
WINAPI
*
get_size
)(
enum
dxgi_device_layer_id
id
,
struct
layer_get_size_args
*
args
,
DWORD
unknown0
);
HRESULT
(
WINAPI
*
create
)(
enum
dxgi_device_layer_id
id
,
void
**
layer_base
,
DWORD
unknown0
,
void
*
device_object
,
REFIID
riid
,
void
**
device_layer
);
};
HRESULT
WINAPI
DXGID3D10RegisterLayers
(
const
struct
dxgi_device_layer
*
layers
,
UINT
layer_count
);
#endif
/* __WINE_D3D10CORE_PRIVATE_H */
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