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
9b085a92
Commit
9b085a92
authored
May 21, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
May 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Get rid of IDirect3DDevice8Impl.
parent
0d45d503
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
28 additions
and
29 deletions
+28
-29
buffer.c
dlls/d3d8/buffer.c
+2
-2
d3d8_private.h
dlls/d3d8/d3d8_private.h
+14
-15
device.c
dlls/d3d8/device.c
+0
-0
directx.c
dlls/d3d8/directx.c
+1
-1
shader.c
dlls/d3d8/shader.c
+3
-3
surface.c
dlls/d3d8/surface.c
+1
-1
swapchain.c
dlls/d3d8/swapchain.c
+1
-1
texture.c
dlls/d3d8/texture.c
+3
-3
vertexdeclaration.c
dlls/d3d8/vertexdeclaration.c
+2
-2
volume.c
dlls/d3d8/volume.c
+1
-1
No files found.
dlls/d3d8/buffer.c
View file @
9b085a92
...
...
@@ -282,7 +282,7 @@ static const struct wined3d_parent_ops d3d8_vertexbuffer_wined3d_parent_ops =
d3d8_vertexbuffer_wined3d_object_destroyed
,
};
HRESULT
vertexbuffer_init
(
IDirect3DVertexBuffer8Impl
*
buffer
,
IDirect3DDevice8Impl
*
device
,
HRESULT
vertexbuffer_init
(
IDirect3DVertexBuffer8Impl
*
buffer
,
struct
d3d8_device
*
device
,
UINT
size
,
DWORD
usage
,
DWORD
fvf
,
D3DPOOL
pool
)
{
HRESULT
hr
;
...
...
@@ -576,7 +576,7 @@ static const struct wined3d_parent_ops d3d8_indexbuffer_wined3d_parent_ops =
d3d8_indexbuffer_wined3d_object_destroyed
,
};
HRESULT
indexbuffer_init
(
IDirect3DIndexBuffer8Impl
*
buffer
,
IDirect3DDevice8Impl
*
device
,
HRESULT
indexbuffer_init
(
IDirect3DIndexBuffer8Impl
*
buffer
,
struct
d3d8_device
*
device
,
UINT
size
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
{
HRESULT
hr
;
...
...
dlls/d3d8/d3d8_private.h
View file @
9b085a92
...
...
@@ -100,7 +100,6 @@
void
fixup_caps
(
WINED3DCAPS
*
pWineCaps
)
DECLSPEC_HIDDEN
;
typedef
struct
IDirect3DDevice8Impl
IDirect3DDevice8Impl
;
typedef
struct
IDirect3DIndexBuffer8Impl
IDirect3DIndexBuffer8Impl
;
typedef
struct
IDirect3DSurface8Impl
IDirect3DSurface8Impl
;
typedef
struct
IDirect3DSwapChain8Impl
IDirect3DSwapChain8Impl
;
...
...
@@ -151,7 +150,7 @@ struct FvfToDecl
struct
d3d8_vertex_declaration
*
declaration
;
};
struct
IDirect3DDevice8Impl
struct
d3d8_device
{
/* IUnknown fields */
IDirect3DDevice8
IDirect3DDevice8_iface
;
...
...
@@ -170,7 +169,7 @@ struct IDirect3DDevice8Impl
BOOL
lost
;
};
HRESULT
device_init
(
IDirect3DDevice8Impl
*
device
,
struct
d3d8
*
parent
,
struct
wined3d
*
wined3d
,
UINT
adapter
,
HRESULT
device_init
(
struct
d3d8_device
*
device
,
struct
d3d8
*
parent
,
struct
wined3d
*
wined3d
,
UINT
adapter
,
D3DDEVTYPE
device_type
,
HWND
focus_window
,
DWORD
flags
,
D3DPRESENT_PARAMETERS
*
parameters
)
DECLSPEC_HIDDEN
;
/* ---------------- */
...
...
@@ -189,7 +188,7 @@ struct IDirect3DVolume8Impl
IUnknown
*
forwardReference
;
};
HRESULT
volume_init
(
IDirect3DVolume8Impl
*
volume
,
IDirect3DDevice8Impl
*
device
,
UINT
width
,
UINT
height
,
HRESULT
volume_init
(
IDirect3DVolume8Impl
*
volume
,
struct
d3d8_device
*
device
,
UINT
width
,
UINT
height
,
UINT
depth
,
DWORD
usage
,
enum
wined3d_format_id
format
,
enum
wined3d_pool
pool
)
DECLSPEC_HIDDEN
;
/* ------------------- */
...
...
@@ -208,7 +207,7 @@ struct IDirect3DSwapChain8Impl
IDirect3DDevice8
*
parentDevice
;
};
HRESULT
swapchain_init
(
IDirect3DSwapChain8Impl
*
swapchain
,
IDirect3DDevice8Impl
*
device
,
HRESULT
swapchain_init
(
IDirect3DSwapChain8Impl
*
swapchain
,
struct
d3d8_device
*
device
,
D3DPRESENT_PARAMETERS
*
present_parameters
)
DECLSPEC_HIDDEN
;
/* ----------------- */
...
...
@@ -232,7 +231,7 @@ struct IDirect3DSurface8Impl
IUnknown
*
forwardReference
;
};
HRESULT
surface_init
(
IDirect3DSurface8Impl
*
surface
,
IDirect3DDevice8Impl
*
device
,
HRESULT
surface_init
(
IDirect3DSurface8Impl
*
surface
,
struct
d3d8_device
*
device
,
UINT
width
,
UINT
height
,
D3DFORMAT
format
,
BOOL
lockable
,
BOOL
discard
,
UINT
level
,
DWORD
usage
,
D3DPOOL
pool
,
D3DMULTISAMPLE_TYPE
multisample_type
,
DWORD
multisample_quality
)
DECLSPEC_HIDDEN
;
IDirect3DSurface8Impl
*
unsafe_impl_from_IDirect3DSurface8
(
IDirect3DSurface8
*
iface
)
DECLSPEC_HIDDEN
;
...
...
@@ -253,7 +252,7 @@ struct IDirect3DVertexBuffer8Impl
DWORD
fvf
;
};
HRESULT
vertexbuffer_init
(
IDirect3DVertexBuffer8Impl
*
buffer
,
IDirect3DDevice8Impl
*
device
,
HRESULT
vertexbuffer_init
(
IDirect3DVertexBuffer8Impl
*
buffer
,
struct
d3d8_device
*
device
,
UINT
size
,
DWORD
usage
,
DWORD
fvf
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
IDirect3DVertexBuffer8Impl
*
unsafe_impl_from_IDirect3DVertexBuffer8
(
IDirect3DVertexBuffer8
*
iface
)
DECLSPEC_HIDDEN
;
...
...
@@ -273,7 +272,7 @@ struct IDirect3DIndexBuffer8Impl
enum
wined3d_format_id
format
;
};
HRESULT
indexbuffer_init
(
IDirect3DIndexBuffer8Impl
*
buffer
,
IDirect3DDevice8Impl
*
device
,
HRESULT
indexbuffer_init
(
IDirect3DIndexBuffer8Impl
*
buffer
,
struct
d3d8_device
*
device
,
UINT
size
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
IDirect3DIndexBuffer8Impl
*
unsafe_impl_from_IDirect3DIndexBuffer8
(
IDirect3DIndexBuffer8
*
iface
)
DECLSPEC_HIDDEN
;
...
...
@@ -285,11 +284,11 @@ struct d3d8_texture
IDirect3DDevice8
*
parent_device
;
};
HRESULT
cubetexture_init
(
struct
d3d8_texture
*
texture
,
IDirect3DDevice8Impl
*
device
,
HRESULT
cubetexture_init
(
struct
d3d8_texture
*
texture
,
struct
d3d8_device
*
device
,
UINT
edge_length
,
UINT
levels
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
HRESULT
texture_init
(
struct
d3d8_texture
*
texture
,
IDirect3DDevice8Impl
*
device
,
HRESULT
texture_init
(
struct
d3d8_texture
*
texture
,
struct
d3d8_device
*
device
,
UINT
width
,
UINT
height
,
UINT
levels
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
HRESULT
volumetexture_init
(
struct
d3d8_texture
*
texture
,
IDirect3DDevice8Impl
*
device
,
HRESULT
volumetexture_init
(
struct
d3d8_texture
*
texture
,
struct
d3d8_device
*
device
,
UINT
width
,
UINT
height
,
UINT
depth
,
UINT
levels
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
struct
d3d8_texture
*
unsafe_impl_from_IDirect3DBaseTexture8
(
IDirect3DBaseTexture8
*
iface
)
DECLSPEC_HIDDEN
;
...
...
@@ -303,9 +302,9 @@ struct d3d8_vertex_declaration
void
d3d8_vertex_declaration_destroy
(
struct
d3d8_vertex_declaration
*
declaration
)
DECLSPEC_HIDDEN
;
HRESULT
d3d8_vertex_declaration_init
(
struct
d3d8_vertex_declaration
*
declaration
,
IDirect3DDevice8Impl
*
device
,
const
DWORD
*
elements
,
DWORD
shader_handle
)
DECLSPEC_HIDDEN
;
struct
d3d8_device
*
device
,
const
DWORD
*
elements
,
DWORD
shader_handle
)
DECLSPEC_HIDDEN
;
HRESULT
d3d8_vertex_declaration_init_fvf
(
struct
d3d8_vertex_declaration
*
declaration
,
IDirect3DDevice8Impl
*
device
,
DWORD
fvf
)
DECLSPEC_HIDDEN
;
struct
d3d8_device
*
device
,
DWORD
fvf
)
DECLSPEC_HIDDEN
;
struct
d3d8_vertex_shader
{
...
...
@@ -314,7 +313,7 @@ struct d3d8_vertex_shader
};
void
d3d8_vertex_shader_destroy
(
struct
d3d8_vertex_shader
*
shader
)
DECLSPEC_HIDDEN
;
HRESULT
d3d8_vertex_shader_init
(
struct
d3d8_vertex_shader
*
shader
,
IDirect3DDevice8Impl
*
device
,
HRESULT
d3d8_vertex_shader_init
(
struct
d3d8_vertex_shader
*
shader
,
struct
d3d8_device
*
device
,
const
DWORD
*
declaration
,
const
DWORD
*
byte_code
,
DWORD
shader_handle
,
DWORD
usage
)
DECLSPEC_HIDDEN
;
#define D3D8_MAX_VERTEX_SHADER_CONSTANTF 256
...
...
@@ -326,7 +325,7 @@ struct d3d8_pixel_shader
};
void
d3d8_pixel_shader_destroy
(
struct
d3d8_pixel_shader
*
shader
)
DECLSPEC_HIDDEN
;
HRESULT
d3d8_pixel_shader_init
(
struct
d3d8_pixel_shader
*
shader
,
IDirect3DDevice8Impl
*
device
,
HRESULT
d3d8_pixel_shader_init
(
struct
d3d8_pixel_shader
*
shader
,
struct
d3d8_device
*
device
,
const
DWORD
*
byte_code
,
DWORD
shader_handle
)
DECLSPEC_HIDDEN
;
D3DFORMAT
d3dformat_from_wined3dformat
(
enum
wined3d_format_id
format
)
DECLSPEC_HIDDEN
;
...
...
dlls/d3d8/device.c
View file @
9b085a92
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dlls/d3d8/directx.c
View file @
9b085a92
...
...
@@ -343,7 +343,7 @@ static HRESULT WINAPI d3d8_CreateDevice(IDirect3D8 *iface, UINT adapter,
IDirect3DDevice8
**
device
)
{
struct
d3d8
*
d3d8
=
impl_from_IDirect3D8
(
iface
);
IDirect3DDevice8Impl
*
object
;
struct
d3d8_device
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, adapter %u, device_type %#x, focus_window %p, flags %#x, parameters %p, device %p.
\n
"
,
...
...
dlls/d3d8/shader.c
View file @
9b085a92
...
...
@@ -50,7 +50,7 @@ static const struct wined3d_parent_ops d3d8_vertexshader_wined3d_parent_ops =
d3d8_vertexshader_wined3d_object_destroyed
,
};
static
HRESULT
d3d8_vertexshader_create_vertexdeclaration
(
IDirect3DDevice8Impl
*
device
,
static
HRESULT
d3d8_vertexshader_create_vertexdeclaration
(
struct
d3d8_device
*
device
,
const
DWORD
*
declaration
,
DWORD
shader_handle
,
struct
d3d8_vertex_declaration
**
decl_ptr
)
{
struct
d3d8_vertex_declaration
*
object
;
...
...
@@ -80,7 +80,7 @@ static HRESULT d3d8_vertexshader_create_vertexdeclaration(IDirect3DDevice8Impl *
return
D3D_OK
;
}
HRESULT
d3d8_vertex_shader_init
(
struct
d3d8_vertex_shader
*
shader
,
IDirect3DDevice8Impl
*
device
,
HRESULT
d3d8_vertex_shader_init
(
struct
d3d8_vertex_shader
*
shader
,
struct
d3d8_device
*
device
,
const
DWORD
*
declaration
,
const
DWORD
*
byte_code
,
DWORD
shader_handle
,
DWORD
usage
)
{
const
DWORD
*
token
=
declaration
;
...
...
@@ -152,7 +152,7 @@ static const struct wined3d_parent_ops d3d8_pixelshader_wined3d_parent_ops =
d3d8_pixelshader_wined3d_object_destroyed
,
};
HRESULT
d3d8_pixel_shader_init
(
struct
d3d8_pixel_shader
*
shader
,
IDirect3DDevice8Impl
*
device
,
HRESULT
d3d8_pixel_shader_init
(
struct
d3d8_pixel_shader
*
shader
,
struct
d3d8_device
*
device
,
const
DWORD
*
byte_code
,
DWORD
shader_handle
)
{
HRESULT
hr
;
...
...
dlls/d3d8/surface.c
View file @
9b085a92
...
...
@@ -320,7 +320,7 @@ static const struct wined3d_parent_ops d3d8_surface_wined3d_parent_ops =
surface_wined3d_object_destroyed
,
};
HRESULT
surface_init
(
IDirect3DSurface8Impl
*
surface
,
IDirect3DDevice8Impl
*
device
,
HRESULT
surface_init
(
IDirect3DSurface8Impl
*
surface
,
struct
d3d8_device
*
device
,
UINT
width
,
UINT
height
,
D3DFORMAT
format
,
BOOL
lockable
,
BOOL
discard
,
UINT
level
,
DWORD
usage
,
D3DPOOL
pool
,
D3DMULTISAMPLE_TYPE
multisample_type
,
DWORD
multisample_quality
)
{
...
...
dlls/d3d8/swapchain.c
View file @
9b085a92
...
...
@@ -150,7 +150,7 @@ static const struct wined3d_parent_ops d3d8_swapchain_wined3d_parent_ops =
d3d8_swapchain_wined3d_object_released
,
};
HRESULT
swapchain_init
(
IDirect3DSwapChain8Impl
*
swapchain
,
IDirect3DDevice8Impl
*
device
,
HRESULT
swapchain_init
(
IDirect3DSwapChain8Impl
*
swapchain
,
struct
d3d8_device
*
device
,
D3DPRESENT_PARAMETERS
*
present_parameters
)
{
struct
wined3d_swapchain_desc
desc
;
...
...
dlls/d3d8/texture.c
View file @
9b085a92
...
...
@@ -1157,7 +1157,7 @@ static const struct wined3d_parent_ops d3d8_texture_wined3d_parent_ops =
d3d8_texture_wined3d_object_destroyed
,
};
HRESULT
texture_init
(
struct
d3d8_texture
*
texture
,
IDirect3DDevice8Impl
*
device
,
HRESULT
texture_init
(
struct
d3d8_texture
*
texture
,
struct
d3d8_device
*
device
,
UINT
width
,
UINT
height
,
UINT
levels
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
{
HRESULT
hr
;
...
...
@@ -1182,7 +1182,7 @@ HRESULT texture_init(struct d3d8_texture *texture, IDirect3DDevice8Impl *device,
return
D3D_OK
;
}
HRESULT
cubetexture_init
(
struct
d3d8_texture
*
texture
,
IDirect3DDevice8Impl
*
device
,
HRESULT
cubetexture_init
(
struct
d3d8_texture
*
texture
,
struct
d3d8_device
*
device
,
UINT
edge_length
,
UINT
levels
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
{
HRESULT
hr
;
...
...
@@ -1207,7 +1207,7 @@ HRESULT cubetexture_init(struct d3d8_texture *texture, IDirect3DDevice8Impl *dev
return
D3D_OK
;
}
HRESULT
volumetexture_init
(
struct
d3d8_texture
*
texture
,
IDirect3DDevice8Impl
*
device
,
HRESULT
volumetexture_init
(
struct
d3d8_texture
*
texture
,
struct
d3d8_device
*
device
,
UINT
width
,
UINT
height
,
UINT
depth
,
UINT
levels
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
{
HRESULT
hr
;
...
...
dlls/d3d8/vertexdeclaration.c
View file @
9b085a92
...
...
@@ -331,7 +331,7 @@ static const struct wined3d_parent_ops d3d8_vertexdeclaration_wined3d_parent_ops
};
HRESULT
d3d8_vertex_declaration_init
(
struct
d3d8_vertex_declaration
*
declaration
,
IDirect3DDevice8Impl
*
device
,
const
DWORD
*
elements
,
DWORD
shader_handle
)
struct
d3d8_device
*
device
,
const
DWORD
*
elements
,
DWORD
shader_handle
)
{
struct
wined3d_vertex_element
*
wined3d_elements
;
UINT
wined3d_element_count
;
...
...
@@ -366,7 +366,7 @@ HRESULT d3d8_vertex_declaration_init(struct d3d8_vertex_declaration *declaration
}
HRESULT
d3d8_vertex_declaration_init_fvf
(
struct
d3d8_vertex_declaration
*
declaration
,
IDirect3DDevice8Impl
*
device
,
DWORD
fvf
)
struct
d3d8_device
*
device
,
DWORD
fvf
)
{
HRESULT
hr
;
...
...
dlls/d3d8/volume.c
View file @
9b085a92
...
...
@@ -279,7 +279,7 @@ static const struct wined3d_parent_ops d3d8_volume_wined3d_parent_ops =
volume_wined3d_object_destroyed
,
};
HRESULT
volume_init
(
IDirect3DVolume8Impl
*
volume
,
IDirect3DDevice8Impl
*
device
,
UINT
width
,
UINT
height
,
HRESULT
volume_init
(
IDirect3DVolume8Impl
*
volume
,
struct
d3d8_device
*
device
,
UINT
width
,
UINT
height
,
UINT
depth
,
DWORD
usage
,
enum
wined3d_format_id
format
,
enum
wined3d_pool
pool
)
{
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