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
ec415eaf
Commit
ec415eaf
authored
Jul 12, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Use unsafe_impl_from_ID3D10VertexShader for an app provided iface.
parent
d67d7ebb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
d3d10core_private.h
dlls/d3d10core/d3d10core_private.h
+1
-0
device.c
dlls/d3d10core/device.c
+1
-1
shader.c
dlls/d3d10core/shader.c
+15
-0
No files found.
dlls/d3d10core/d3d10core_private.h
View file @
ec415eaf
...
...
@@ -176,6 +176,7 @@ struct d3d10_vertex_shader
HRESULT
d3d10_vertex_shader_init
(
struct
d3d10_vertex_shader
*
shader
,
struct
d3d10_device
*
device
,
const
void
*
byte_code
,
SIZE_T
byte_code_length
)
DECLSPEC_HIDDEN
;
struct
d3d10_vertex_shader
*
unsafe_impl_from_ID3D10VertexShader
(
ID3D10VertexShader
*
iface
)
DECLSPEC_HIDDEN
;
/* ID3D10GeometryShader */
struct
d3d10_geometry_shader
...
...
dlls/d3d10core/device.c
View file @
ec415eaf
...
...
@@ -151,7 +151,7 @@ static void STDMETHODCALLTYPE d3d10_device_VSSetShader(ID3D10Device *iface,
ID3D10VertexShader
*
shader
)
{
struct
d3d10_device
*
This
=
impl_from_ID3D10Device
(
iface
);
struct
d3d10_vertex_shader
*
vs
=
(
struct
d3d10_vertex_shader
*
)
shader
;
struct
d3d10_vertex_shader
*
vs
=
unsafe_impl_from_ID3D10VertexShader
(
shader
)
;
TRACE
(
"iface %p, shader %p
\n
"
,
iface
,
shader
);
...
...
dlls/d3d10core/shader.c
View file @
ec415eaf
...
...
@@ -19,6 +19,7 @@
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include "d3d10core_private.h"
...
...
@@ -132,6 +133,11 @@ void shader_free_signature(struct wined3d_shader_signature *s)
HeapFree
(
GetProcessHeap
(),
0
,
s
->
elements
);
}
static
inline
struct
d3d10_vertex_shader
*
impl_from_ID3D10VertexShader
(
ID3D10VertexShader
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3d10_vertex_shader
,
vtbl
);
}
/* IUnknown methods */
static
HRESULT
STDMETHODCALLTYPE
d3d10_vertex_shader_QueryInterface
(
ID3D10VertexShader
*
iface
,
...
...
@@ -267,6 +273,15 @@ HRESULT d3d10_vertex_shader_init(struct d3d10_vertex_shader *shader, struct d3d1
return
S_OK
;
}
struct
d3d10_vertex_shader
*
unsafe_impl_from_ID3D10VertexShader
(
ID3D10VertexShader
*
iface
)
{
if
(
!
iface
)
return
NULL
;
assert
(
iface
->
lpVtbl
==
&
d3d10_vertex_shader_vtbl
);
return
impl_from_ID3D10VertexShader
(
iface
);
}
static
inline
struct
d3d10_geometry_shader
*
impl_from_ID3D10GeometryShader
(
ID3D10GeometryShader
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3d10_geometry_shader
,
ID3D10GeometryShader_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