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
25c44924
Commit
25c44924
authored
Nov 13, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Implement d3d10_device_GSGetShader().
parent
9081f8af
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
1 deletion
+24
-1
device.c
dlls/d3d10core/device.c
+15
-1
device.c
dlls/wined3d/device.c
+7
-0
wined3d.spec
dlls/wined3d/wined3d.spec
+1
-0
wined3d.h
include/wine/wined3d.h
+1
-0
No files found.
dlls/d3d10core/device.c
View file @
25c44924
...
...
@@ -546,7 +546,21 @@ static void STDMETHODCALLTYPE d3d10_device_GSGetConstantBuffers(ID3D10Device *if
static
void
STDMETHODCALLTYPE
d3d10_device_GSGetShader
(
ID3D10Device
*
iface
,
ID3D10GeometryShader
**
shader
)
{
FIXME
(
"iface %p, shader %p stub!
\n
"
,
iface
,
shader
);
struct
d3d10_device
*
device
=
impl_from_ID3D10Device
(
iface
);
struct
d3d10_geometry_shader
*
shader_impl
;
struct
wined3d_shader
*
wined3d_shader
;
TRACE
(
"iface %p, shader %p.
\n
"
,
iface
,
shader
);
if
(
!
(
wined3d_shader
=
wined3d_device_get_geometry_shader
(
device
->
wined3d_device
)))
{
*
shader
=
NULL
;
return
;
}
shader_impl
=
wined3d_shader_get_parent
(
wined3d_shader
);
*
shader
=
&
shader_impl
->
ID3D10GeometryShader_iface
;
ID3D10GeometryShader_AddRef
(
*
shader
);
}
static
void
STDMETHODCALLTYPE
d3d10_device_IAGetPrimitiveTopology
(
ID3D10Device
*
iface
,
...
...
dlls/wined3d/device.c
View file @
25c44924
...
...
@@ -3012,6 +3012,13 @@ void CDECL wined3d_device_set_geometry_shader(struct wined3d_device *device, str
device_invalidate_state
(
device
,
STATE_GEOMETRY_SHADER
);
}
struct
wined3d_shader
*
CDECL
wined3d_device_get_geometry_shader
(
const
struct
wined3d_device
*
device
)
{
TRACE
(
"device %p.
\n
"
,
device
);
return
device
->
stateBlock
->
state
.
geometry_shader
;
}
/* Context activation is done by the caller. */
/* Do not call while under the GL lock. */
#define copy_and_next(dest, src, size) memcpy(dest, src, size); dest += (size)
...
...
dlls/wined3d/wined3d.spec
View file @
25c44924
...
...
@@ -64,6 +64,7 @@
@ cdecl wined3d_device_get_display_mode(ptr long ptr ptr)
@ cdecl wined3d_device_get_front_buffer_data(ptr long ptr)
@ cdecl wined3d_device_get_gamma_ramp(ptr long ptr)
@ cdecl wined3d_device_get_geometry_shader(ptr)
@ cdecl wined3d_device_get_index_buffer(ptr)
@ cdecl wined3d_device_get_light(ptr long ptr)
@ cdecl wined3d_device_get_light_enable(ptr long ptr)
...
...
include/wine/wined3d.h
View file @
25c44924
...
...
@@ -2124,6 +2124,7 @@ HRESULT __cdecl wined3d_device_get_front_buffer_data(const struct wined3d_device
UINT
swapchain_idx
,
struct
wined3d_surface
*
dst_surface
);
void
__cdecl
wined3d_device_get_gamma_ramp
(
const
struct
wined3d_device
*
device
,
UINT
swapchain_idx
,
struct
wined3d_gamma_ramp
*
ramp
);
struct
wined3d_shader
*
__cdecl
wined3d_device_get_geometry_shader
(
const
struct
wined3d_device
*
device
);
struct
wined3d_buffer
*
__cdecl
wined3d_device_get_index_buffer
(
const
struct
wined3d_device
*
device
);
HRESULT
__cdecl
wined3d_device_get_light
(
const
struct
wined3d_device
*
device
,
UINT
light_idx
,
struct
wined3d_light
*
light
);
...
...
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