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
44aead2e
Commit
44aead2e
authored
Oct 19, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Fix some IDirect3DDevice9Ex methods.
parent
1ab851a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
18 deletions
+38
-18
device.c
dlls/d3d9/device.c
+30
-14
d3d9.h
include/d3d9.h
+8
-4
No files found.
dlls/d3d9/device.c
View file @
44aead2e
...
...
@@ -2039,9 +2039,15 @@ static HRESULT WINAPI IDirect3DDevice9ExImpl_SetConvolutionMonoKernel(LPDIRECT
return
WINED3DERR_INVALIDCALL
;
}
static
HRESULT
WINAPI
IDirect3DDevice9ExImpl_ComposeRects
(
LPDIRECT3DDEVICE9EX
iface
,
IDirect3DSurface9
*
pSrc
,
IDirect3DDevice9
*
pDst
,
IDirect3DVertexBuffer9
*
pSrcRectDescs
,
UINT
NumRects
,
IDirect3DVertexBuffer9
*
pDstRectDescs
,
D3DCOMPOSERECTSOP
Operation
,
int
Xoffset
,
int
Yoffset
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
FIXME
(
"(%p)->(%p, %p, %p, %d, %p, %d, %d, %d) Stub!
\n
"
,
This
,
pSrc
,
pDst
,
pSrcRectDescs
,
NumRects
,
pDstRectDescs
,
Operation
,
Xoffset
,
Yoffset
);
static
HRESULT
WINAPI
IDirect3DDevice9ExImpl_ComposeRects
(
IDirect3DDevice9Ex
*
iface
,
IDirect3DSurface9
*
src_surface
,
IDirect3DSurface9
*
dst_surface
,
IDirect3DVertexBuffer9
*
src_descs
,
UINT
rect_count
,
IDirect3DVertexBuffer9
*
dst_descs
,
D3DCOMPOSERECTSOP
operation
,
INT
offset_x
,
INT
offset_y
)
{
FIXME
(
"iface %p, src_surface %p, dst_surface %p, src_descs %p, rect_count %u,
\n
"
"dst_descs %p, operation %#x, offset_x %u, offset_y %u stub!
\n
"
,
iface
,
src_surface
,
dst_surface
,
src_descs
,
rect_count
,
dst_descs
,
operation
,
offset_x
,
offset_y
);
return
WINED3DERR_INVALIDCALL
;
}
...
...
@@ -2069,9 +2075,12 @@ static HRESULT WINAPI IDirect3DDevice9ExImpl_WaitForVBlank(LPDIRECT3DDEVICE9EX
return
WINED3DERR_INVALIDCALL
;
}
static
HRESULT
WINAPI
IDirect3DDevice9ExImpl_CheckresourceResidency
(
LPDIRECT3DDEVICE9EX
iface
,
IDirect3DResource9
**
pResourceArray
,
UINT32
Numresources
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
FIXME
(
"(%p)->(%p, %d) Stub!
\n
"
,
This
,
pResourceArray
,
Numresources
);
static
HRESULT
WINAPI
IDirect3DDevice9ExImpl_CheckResourceResidency
(
IDirect3DDevice9Ex
*
iface
,
IDirect3DResource9
**
resources
,
UINT32
resource_count
)
{
FIXME
(
"iface %p, resources %p, resource_count %u stub!
\n
"
,
iface
,
resources
,
resource_count
);
return
WINED3DERR_INVALIDCALL
;
}
...
...
@@ -2088,9 +2097,10 @@ static HRESULT WINAPI IDirect3DDevice9ExImpl_GetMaximumFrameLatency(LPDIRECT3D
return
WINED3DERR_INVALIDCALL
;
}
static
HRESULT
WINAPI
IDirect3DDevice9ExImpl_CheckdeviceState
(
LPDIRECT3DDEVICE9EX
iface
,
HWND
hDestinationWindow
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
FIXME
(
"(%p)->(%p) Stub!
\n
"
,
This
,
hDestinationWindow
);
static
HRESULT
WINAPI
IDirect3DDevice9ExImpl_CheckDeviceState
(
IDirect3DDevice9Ex
*
iface
,
HWND
dst_window
)
{
FIXME
(
"iface %p, dst_window %p stub!
\n
"
,
iface
,
dst_window
);
return
WINED3DERR_INVALIDCALL
;
}
...
...
@@ -2106,9 +2116,15 @@ static HRESULT WINAPI IDirect3DDevice9ExImpl_CreateOffscreenPlainSurfaceEx(LPD
return
WINED3DERR_INVALIDCALL
;
}
static
HRESULT
WINAPI
IDirect3DDevice9ExImpl_CreateDepthStencilSurfaceEx
(
LPDIRECT3DDEVICE9EX
iface
,
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultiSampleQuality
,
BOOL
Discard
,
IDirect3DSurface9
**
ppSurface
,
HANDLE
*
pSharedHandle
,
DWORD
Usage
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
FIXME
(
"(%p)->(%d, %d, %d, %d, %d, %s, %p, %p, 0x%08x) Stub!
\n
"
,
This
,
Width
,
Height
,
Format
,
MultiSample
,
MultiSampleQuality
,
Discard
?
"true"
:
"false"
,
ppSurface
,
pSharedHandle
,
Usage
);
static
HRESULT
WINAPI
IDirect3DDevice9ExImpl_CreateDepthStencilSurfaceEx
(
IDirect3DDevice9Ex
*
iface
,
UINT
width
,
UINT
height
,
D3DFORMAT
format
,
D3DMULTISAMPLE_TYPE
multisample_type
,
DWORD
multisample_quality
,
BOOL
discard
,
IDirect3DSurface9
**
surface
,
HANDLE
*
shared_handle
,
DWORD
usage
)
{
FIXME
(
"iface %p, width %u, height %u, format %#x, multisample_type %#x, multisample_quality %u,
\n
"
"discard %#x, surface %p, shared_handle %p, usage %#x stub!
\n
"
,
iface
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
discard
,
surface
,
shared_handle
,
usage
);
return
WINED3DERR_INVALIDCALL
;
}
...
...
@@ -2254,10 +2270,10 @@ const IDirect3DDevice9ExVtbl Direct3DDevice9_Vtbl =
IDirect3DDevice9ExImpl_GetGPUThreadPriority
,
IDirect3DDevice9ExImpl_SetGPUThreadPriority
,
IDirect3DDevice9ExImpl_WaitForVBlank
,
IDirect3DDevice9ExImpl_Check
r
esourceResidency
,
IDirect3DDevice9ExImpl_Check
R
esourceResidency
,
IDirect3DDevice9ExImpl_SetMaximumFrameLatency
,
IDirect3DDevice9ExImpl_GetMaximumFrameLatency
,
IDirect3DDevice9ExImpl_Check
d
eviceState
,
IDirect3DDevice9ExImpl_Check
D
eviceState
,
IDirect3DDevice9ExImpl_CreateRenderTargetEx
,
IDirect3DDevice9ExImpl_CreateOffscreenPlainSurfaceEx
,
IDirect3DDevice9ExImpl_CreateDepthStencilSurfaceEx
,
...
...
include/d3d9.h
View file @
44aead2e
...
...
@@ -1708,18 +1708,22 @@ DECLARE_INTERFACE_(IDirect3DDevice9Ex,IDirect3DDevice9)
STDMETHOD
(
CreateQuery
)(
THIS_
D3DQUERYTYPE
Type
,
IDirect3DQuery9
**
ppQuery
)
PURE
;
/* IDirect3DDevice9Ex methods */
STDMETHOD
(
SetConvolutionMonoKernel
)(
THIS_
UINT
width
,
UINT
height
,
float
*
rows
,
float
*
columns
)
PURE
;
STDMETHOD
(
ComposeRects
)(
THIS_
IDirect3DSurface9
*
pSrc
,
IDirect3DDevice9
*
pDst
,
IDirect3DVertexBuffer9
*
pSrcRectDescs
,
UINT
NumRects
,
IDirect3DVertexBuffer9
*
pDstRectDescs
,
D3DCOMPOSERECTSOP
Operation
,
int
Xoffset
,
int
Yoffset
)
PURE
;
STDMETHOD
(
ComposeRects
)(
THIS_
IDirect3DSurface9
*
src_surface
,
IDirect3DSurface9
*
dst_surface
,
IDirect3DVertexBuffer9
*
src_descs
,
UINT
rect_count
,
IDirect3DVertexBuffer9
*
dst_descs
,
D3DCOMPOSERECTSOP
operation
,
INT
offset_x
,
INT
offset_y
)
PURE
;
STDMETHOD
(
PresentEx
)(
THIS_
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
GetGPUThreadPriority
)(
THIS_
INT
*
pPriority
)
PURE
;
STDMETHOD
(
SetGPUThreadPriority
)(
THIS_
INT
Priority
)
PURE
;
STDMETHOD
(
WaitForVBlank
)(
THIS_
UINT
iSwapChain
)
PURE
;
STDMETHOD
(
Check
resourceResidency
)(
THIS_
IDirect3DResource9
**
pResourceArray
,
UINT32
Numresources
)
PURE
;
STDMETHOD
(
Check
ResourceResidency
)(
THIS_
IDirect3DResource9
**
resources
,
UINT32
resource_count
)
PURE
;
STDMETHOD
(
SetMaximumFrameLatency
)(
THIS_
UINT
MaxLatency
)
PURE
;
STDMETHOD
(
GetMaximumFrameLatency
)(
THIS_
UINT
*
pMaxLatenxy
)
PURE
;
STDMETHOD
(
Check
deviceState
)(
THIS_
HWND
hDestinationW
indow
)
PURE
;
STDMETHOD
(
Check
DeviceState
)(
THIS_
HWND
dst_w
indow
)
PURE
;
STDMETHOD
(
CreateRenderTargetEx
)(
THIS_
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultiSampleQuality
,
BOOL
Lockable
,
IDirect3DSurface9
**
ppSurface
,
HANDLE
*
pSharedHandle
,
DWORD
Usage
)
PURE
;
STDMETHOD
(
CreateOffscreenPlainSurfaceEx
)(
THIS_
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DSurface9
**
ppSurface
,
HANDLE
*
pSharedHandle
,
DWORD
Usage
)
PURE
;
STDMETHOD
(
CreateDepthStencilSurfaceEx
)(
THIS_
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultiSampleQuality
,
BOOL
Discard
,
IDirect3DSurface9
**
ppSurfface
,
HANDLE
*
pSharedHandle
,
DWORD
Usage
)
PURE
;
STDMETHOD
(
CreateDepthStencilSurfaceEx
)(
THIS_
UINT
width
,
UINT
height
,
D3DFORMAT
format
,
D3DMULTISAMPLE_TYPE
multisample_type
,
DWORD
multisample_quality
,
BOOL
discard
,
IDirect3DSurface9
**
surface
,
HANDLE
*
shared_handle
,
DWORD
usage
)
PURE
;
STDMETHOD
(
ResetEx
)(
THIS_
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
D3DDISPLAYMODEEX
*
pFullscreenDisplayMode
)
PURE
;
STDMETHOD
(
GetDisplayModeEx
)(
THIS_
UINT
iSwapChain
,
D3DDISPLAYMODEEX
*
pMode
,
D3DDISPLAYROTATION
*
pRotation
)
PURE
;
};
...
...
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