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
57242b84
Commit
57242b84
authored
Jan 19, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Implement device_parent_CreateRenderTarget().
parent
43f469ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
device.c
dlls/d3d10core/device.c
+29
-1
No files found.
dlls/d3d10core/device.c
View file @
57242b84
...
...
@@ -1008,11 +1008,39 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
IUnknown
*
superior
,
UINT
width
,
UINT
height
,
WINED3DFORMAT
format
,
WINED3DMULTISAMPLE_TYPE
multisample_type
,
DWORD
multisample_quality
,
BOOL
lockable
,
IWineD3DSurface
**
surface
)
{
struct
d3d10_device
*
This
=
device_from_device_parent
(
iface
);
struct
d3d10_texture2d
*
texture
;
D3D10_TEXTURE2D_DESC
desc
;
HRESULT
hr
;
FIXME
(
"iface %p, superior %p, width %u, height %u, format %#x, multisample_type %#x,
\n
"
"
\t
multisample_quality %u, lockable %u, surface %p stub!
\n
"
,
iface
,
superior
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
lockable
,
surface
);
return
E_NOTIMPL
;
FIXME
(
"Implement DXGI<->wined3d format and usage conversion
\n
"
);
desc
.
Width
=
width
;
desc
.
Height
=
height
;
desc
.
MipLevels
=
1
;
desc
.
ArraySize
=
1
;
desc
.
Format
=
format
;
desc
.
SampleDesc
.
Count
=
multisample_type
;
desc
.
SampleDesc
.
Quality
=
multisample_quality
;
desc
.
Usage
=
D3D10_USAGE_DEFAULT
;
desc
.
BindFlags
=
D3D10_BIND_RENDER_TARGET
;
desc
.
CPUAccessFlags
=
0
;
desc
.
MiscFlags
=
0
;
hr
=
d3d10_device_CreateTexture2D
((
ID3D10Device
*
)
This
,
&
desc
,
NULL
,
(
ID3D10Texture2D
**
)
&
texture
);
if
(
FAILED
(
hr
))
{
ERR
(
"CreateTexture2D failed, returning %#x
\n
"
,
hr
);
return
hr
;
}
*
surface
=
texture
->
wined3d_surface
;
return
S_OK
;
}
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateDepthStencilSurface
(
IWineD3DDeviceParent
*
iface
,
...
...
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