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
dc67be01
Commit
dc67be01
authored
Nov 22, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Implement d3d10_device_SOGetTargets().
parent
5b781d70
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
1 deletion
+38
-1
device.c
dlls/d3d10core/device.c
+20
-1
device.c
dlls/wined3d/device.c
+15
-0
wined3d.spec
dlls/wined3d/wined3d.spec
+1
-0
wined3d.h
include/wine/wined3d.h
+2
-0
No files found.
dlls/d3d10core/device.c
View file @
dc67be01
...
...
@@ -713,8 +713,27 @@ static void STDMETHODCALLTYPE d3d10_device_OMGetDepthStencilState(ID3D10Device *
static
void
STDMETHODCALLTYPE
d3d10_device_SOGetTargets
(
ID3D10Device
*
iface
,
UINT
buffer_count
,
ID3D10Buffer
**
buffers
,
UINT
*
offsets
)
{
FIXME
(
"iface %p, buffer_count %u, buffers %p, offsets %p stub!
\n
"
,
struct
d3d10_device
*
device
=
impl_from_ID3D10Device
(
iface
);
unsigned
int
i
;
TRACE
(
"iface %p, buffer_count %u, buffers %p, offsets %p.
\n
"
,
iface
,
buffer_count
,
buffers
,
offsets
);
for
(
i
=
0
;
i
<
buffer_count
;
++
i
)
{
struct
wined3d_buffer
*
wined3d_buffer
;
struct
d3d10_buffer
*
buffer_impl
;
if
(
!
(
wined3d_buffer
=
wined3d_device_get_stream_output
(
device
->
wined3d_device
,
i
,
&
offsets
[
i
])))
{
buffers
[
i
]
=
NULL
;
continue
;
}
buffer_impl
=
wined3d_buffer_get_parent
(
wined3d_buffer
);
buffers
[
i
]
=
&
buffer_impl
->
ID3D10Buffer_iface
;
ID3D10Buffer_AddRef
(
buffers
[
i
]);
}
}
static
void
STDMETHODCALLTYPE
d3d10_device_RSGetState
(
ID3D10Device
*
iface
,
ID3D10RasterizerState
**
rasterizer_state
)
...
...
dlls/wined3d/device.c
View file @
dc67be01
...
...
@@ -1600,6 +1600,21 @@ void CDECL wined3d_device_set_stream_output(struct wined3d_device *device, UINT
}
}
struct
wined3d_buffer
*
CDECL
wined3d_device_get_stream_output
(
struct
wined3d_device
*
device
,
UINT
idx
,
UINT
*
offset
)
{
TRACE
(
"device %p, idx %u, offset %p.
\n
"
,
device
,
idx
,
offset
);
if
(
idx
>=
MAX_STREAM_OUT
)
{
WARN
(
"Invalid stream output %u.
\n
"
,
idx
);
return
NULL
;
}
*
offset
=
device
->
stateBlock
->
state
.
stream_output
[
idx
].
offset
;
return
device
->
stateBlock
->
state
.
stream_output
[
idx
].
buffer
;
}
HRESULT
CDECL
wined3d_device_set_stream_source
(
struct
wined3d_device
*
device
,
UINT
stream_idx
,
struct
wined3d_buffer
*
buffer
,
UINT
offset
,
UINT
stride
)
{
...
...
dlls/wined3d/wined3d.spec
View file @
dc67be01
...
...
@@ -81,6 +81,7 @@
@ cdecl wined3d_device_get_sampler_state(ptr long long)
@ cdecl wined3d_device_get_scissor_rect(ptr ptr)
@ cdecl wined3d_device_get_software_vertex_processing(ptr)
@ cdecl wined3d_device_get_stream_output(ptr long ptr)
@ cdecl wined3d_device_get_stream_source(ptr long ptr ptr ptr)
@ cdecl wined3d_device_get_stream_source_freq(ptr long ptr)
@ cdecl wined3d_device_get_surface_from_dc(ptr ptr)
...
...
include/wine/wined3d.h
View file @
dc67be01
...
...
@@ -2150,6 +2150,8 @@ DWORD __cdecl wined3d_device_get_sampler_state(const struct wined3d_device *devi
UINT
sampler_idx
,
enum
wined3d_sampler_state
state
);
void
__cdecl
wined3d_device_get_scissor_rect
(
const
struct
wined3d_device
*
device
,
RECT
*
rect
);
BOOL
__cdecl
wined3d_device_get_software_vertex_processing
(
const
struct
wined3d_device
*
device
);
struct
wined3d_buffer
*
__cdecl
wined3d_device_get_stream_output
(
struct
wined3d_device
*
device
,
UINT
idx
,
UINT
*
offset
);
HRESULT
__cdecl
wined3d_device_get_stream_source
(
const
struct
wined3d_device
*
device
,
UINT
stream_idx
,
struct
wined3d_buffer
**
buffer
,
UINT
*
offset
,
UINT
*
stride
);
HRESULT
__cdecl
wined3d_device_get_stream_source_freq
(
const
struct
wined3d_device
*
device
,
...
...
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