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
503b1639
Commit
503b1639
authored
May 31, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
May 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Get rid of IDirect3DVertexBuffer9Impl.
parent
5227dfa8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
20 deletions
+13
-20
buffer.c
dlls/d3d9/buffer.c
+0
-0
d3d9_private.h
dlls/d3d9/d3d9_private.h
+7
-14
device.c
dlls/d3d9/device.c
+6
-6
No files found.
dlls/d3d9/buffer.c
View file @
503b1639
This diff is collapsed.
Click to expand it.
dlls/d3d9/d3d9_private.h
View file @
503b1639
...
...
@@ -203,25 +203,18 @@ HRESULT surface_init(struct d3d9_surface *surface, struct d3d9_device *device,
DWORD
usage
,
D3DPOOL
pool
,
D3DMULTISAMPLE_TYPE
multisample_type
,
DWORD
multisample_quality
)
DECLSPEC_HIDDEN
;
struct
d3d9_surface
*
unsafe_impl_from_IDirect3DSurface9
(
IDirect3DSurface9
*
iface
)
DECLSPEC_HIDDEN
;
/* ---------------------- */
/* IDirect3DVertexBuffer9 */
/* ---------------------- */
/*****************************************************************************
* IDirect3DVertexBuffer9 implementation structure
*/
typedef
struct
IDirect3DVertexBuffer9Impl
struct
d3d9_vertexbuffer
{
IDirect3DVertexBuffer9
IDirect3DVertexBuffer9_iface
;
LONG
ref
;
struct
wined3d_buffer
*
wine
D3DVertexB
uffer
;
IDirect3DDevice9Ex
*
parent
D
evice
;
LONG
ref
count
;
struct
wined3d_buffer
*
wine
d3d_b
uffer
;
IDirect3DDevice9Ex
*
parent
_d
evice
;
DWORD
fvf
;
}
IDirect3DVertexBuffer9Impl
;
};
HRESULT
vertexbuffer_init
(
IDirect3DVertexBuffer9Impl
*
buffer
,
struct
d3d9_device
*
device
,
HRESULT
vertexbuffer_init
(
struct
d3d9_vertexbuffer
*
buffer
,
struct
d3d9_device
*
device
,
UINT
size
,
UINT
usage
,
DWORD
fvf
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
IDirect3DVertexBuffer9Impl
*
unsafe_impl_from_IDirect3DVertexBuffer9
(
IDirect3DVertexBuffer9
*
iface
)
DECLSPEC_HIDDEN
;
struct
d3d9_vertexbuffer
*
unsafe_impl_from_IDirect3DVertexBuffer9
(
IDirect3DVertexBuffer9
*
iface
)
DECLSPEC_HIDDEN
;
/* --------------------- */
/* IDirect3DIndexBuffer9 */
...
...
dlls/d3d9/device.c
View file @
503b1639
...
...
@@ -796,7 +796,7 @@ static HRESULT WINAPI d3d9_device_CreateVertexBuffer(IDirect3DDevice9Ex *iface,
HANDLE
*
shared_handle
)
{
struct
d3d9_device
*
device
=
impl_from_IDirect3DDevice9Ex
(
iface
);
IDirect3DVertexBuffer9Impl
*
object
;
struct
d3d9_vertexbuffer
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, size %u, usage %#x, fvf %#x, pool %#x, buffer %p, shared_handle %p.
\n
"
,
...
...
@@ -2018,7 +2018,7 @@ static HRESULT WINAPI d3d9_device_ProcessVertices(IDirect3DDevice9Ex *iface,
IDirect3DVertexDeclaration9
*
declaration
,
DWORD
flags
)
{
struct
d3d9_device
*
device
=
impl_from_IDirect3DDevice9Ex
(
iface
);
IDirect3DVertexBuffer9Impl
*
dst_impl
=
unsafe_impl_from_IDirect3DVertexBuffer9
(
dst_buffer
);
struct
d3d9_vertexbuffer
*
dst_impl
=
unsafe_impl_from_IDirect3DVertexBuffer9
(
dst_buffer
);
IDirect3DVertexDeclaration9Impl
*
decl_impl
=
unsafe_impl_from_IDirect3DVertexDeclaration9
(
declaration
);
HRESULT
hr
;
...
...
@@ -2027,7 +2027,7 @@ static HRESULT WINAPI d3d9_device_ProcessVertices(IDirect3DDevice9Ex *iface,
wined3d_mutex_lock
();
hr
=
wined3d_device_process_vertices
(
device
->
wined3d_device
,
src_start_idx
,
dst_idx
,
vertex_count
,
dst_impl
->
wine
D3DVertexB
uffer
,
decl_impl
?
decl_impl
->
wineD3DVertexDeclaration
:
NULL
,
dst_impl
->
wine
d3d_b
uffer
,
decl_impl
?
decl_impl
->
wineD3DVertexDeclaration
:
NULL
,
flags
,
dst_impl
->
fvf
);
wined3d_mutex_unlock
();
...
...
@@ -2418,7 +2418,7 @@ static HRESULT WINAPI d3d9_device_SetStreamSource(IDirect3DDevice9Ex *iface,
UINT
stream_idx
,
IDirect3DVertexBuffer9
*
buffer
,
UINT
offset
,
UINT
stride
)
{
struct
d3d9_device
*
device
=
impl_from_IDirect3DDevice9Ex
(
iface
);
IDirect3DVertexBuffer9Impl
*
buffer_impl
=
unsafe_impl_from_IDirect3DVertexBuffer9
(
buffer
);
struct
d3d9_vertexbuffer
*
buffer_impl
=
unsafe_impl_from_IDirect3DVertexBuffer9
(
buffer
);
HRESULT
hr
;
TRACE
(
"iface %p, stream_idx %u, buffer %p, offset %u, stride %u.
\n
"
,
...
...
@@ -2426,7 +2426,7 @@ static HRESULT WINAPI d3d9_device_SetStreamSource(IDirect3DDevice9Ex *iface,
wined3d_mutex_lock
();
hr
=
wined3d_device_set_stream_source
(
device
->
wined3d_device
,
stream_idx
,
buffer_impl
?
buffer_impl
->
wine
D3DVertexB
uffer
:
NULL
,
offset
,
stride
);
buffer_impl
?
buffer_impl
->
wine
d3d_b
uffer
:
NULL
,
offset
,
stride
);
wined3d_mutex_unlock
();
return
hr
;
...
...
@@ -2436,7 +2436,7 @@ static HRESULT WINAPI d3d9_device_GetStreamSource(IDirect3DDevice9Ex *iface,
UINT
stream_idx
,
IDirect3DVertexBuffer9
**
buffer
,
UINT
*
offset
,
UINT
*
stride
)
{
struct
d3d9_device
*
device
=
impl_from_IDirect3DDevice9Ex
(
iface
);
IDirect3DVertexBuffer9Impl
*
buffer_impl
;
struct
d3d9_vertexbuffer
*
buffer_impl
;
struct
wined3d_buffer
*
wined3d_buffer
;
HRESULT
hr
;
...
...
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