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
e348fefa
Commit
e348fefa
authored
Oct 02, 2015
by
Józef Kucia
Committed by
Alexandre Julliard
Oct 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Implement {d3d10, d3d11}_geometry_shader_GetDevice().
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
parent
9c9b5949
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
d3d11_private.h
dlls/d3d11/d3d11_private.h
+1
-0
shader.c
dlls/d3d11/shader.c
+20
-2
No files found.
dlls/d3d11/d3d11_private.h
View file @
e348fefa
...
...
@@ -249,6 +249,7 @@ struct d3d_geometry_shader
struct
wined3d_private_store
private_store
;
struct
wined3d_shader
*
wined3d_shader
;
ID3D11Device
*
device
;
};
HRESULT
d3d_geometry_shader_create
(
struct
d3d_device
*
device
,
const
void
*
byte_code
,
SIZE_T
byte_code_length
,
...
...
dlls/d3d11/shader.c
View file @
e348fefa
...
...
@@ -495,9 +495,15 @@ static ULONG STDMETHODCALLTYPE d3d11_geometry_shader_Release(ID3D11GeometryShade
if
(
!
refcount
)
{
ID3D11Device
*
device
=
shader
->
device
;
wined3d_mutex_lock
();
wined3d_shader_decref
(
shader
->
wined3d_shader
);
wined3d_mutex_unlock
();
/* Release the device last, it may cause the wined3d device to be
* destroyed. */
ID3D11Device_Release
(
device
);
}
return
refcount
;
...
...
@@ -506,7 +512,12 @@ static ULONG STDMETHODCALLTYPE d3d11_geometry_shader_Release(ID3D11GeometryShade
static
void
STDMETHODCALLTYPE
d3d11_geometry_shader_GetDevice
(
ID3D11GeometryShader
*
iface
,
ID3D11Device
**
device
)
{
FIXME
(
"iface %p, device %p stub!
\n
"
,
iface
,
device
);
struct
d3d_geometry_shader
*
shader
=
impl_from_ID3D11GeometryShader
(
iface
);
TRACE
(
"iface %p, device %p.
\n
"
,
iface
,
device
);
*
device
=
shader
->
device
;
ID3D11Device_AddRef
(
*
device
);
}
static
HRESULT
STDMETHODCALLTYPE
d3d11_geometry_shader_GetPrivateData
(
ID3D11GeometryShader
*
iface
,
...
...
@@ -593,7 +604,11 @@ static ULONG STDMETHODCALLTYPE d3d10_geometry_shader_Release(ID3D10GeometryShade
static
void
STDMETHODCALLTYPE
d3d10_geometry_shader_GetDevice
(
ID3D10GeometryShader
*
iface
,
ID3D10Device
**
device
)
{
FIXME
(
"iface %p, device %p stub!
\n
"
,
iface
,
device
);
struct
d3d_geometry_shader
*
shader
=
impl_from_ID3D10GeometryShader
(
iface
);
TRACE
(
"iface %p, device %p.
\n
"
,
iface
,
device
);
ID3D11Device_QueryInterface
(
shader
->
device
,
&
IID_ID3D10Device
,
(
void
**
)
device
);
}
static
HRESULT
STDMETHODCALLTYPE
d3d10_geometry_shader_GetPrivateData
(
ID3D10GeometryShader
*
iface
,
...
...
@@ -697,6 +712,9 @@ static HRESULT d3d_geometry_shader_init(struct d3d_geometry_shader *shader, stru
}
wined3d_mutex_unlock
();
shader
->
device
=
&
device
->
ID3D11Device_iface
;
ID3D11Device_AddRef
(
shader
->
device
);
return
S_OK
;
}
...
...
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