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
887a4ff3
Commit
887a4ff3
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_ID3D10PixelShader for an app provided iface.
parent
cc0cc6a8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-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
+14
-0
No files found.
dlls/d3d10core/d3d10core_private.h
View file @
887a4ff3
...
...
@@ -203,6 +203,7 @@ struct d3d10_pixel_shader
HRESULT
d3d10_pixel_shader_init
(
struct
d3d10_pixel_shader
*
shader
,
struct
d3d10_device
*
device
,
const
void
*
byte_code
,
SIZE_T
byte_code_length
)
DECLSPEC_HIDDEN
;
struct
d3d10_pixel_shader
*
unsafe_impl_from_ID3D10PixelShader
(
ID3D10PixelShader
*
iface
)
DECLSPEC_HIDDEN
;
HRESULT
shader_parse_signature
(
const
char
*
data
,
DWORD
data_size
,
struct
wined3d_shader_signature
*
s
)
DECLSPEC_HIDDEN
;
void
shader_free_signature
(
struct
wined3d_shader_signature
*
s
)
DECLSPEC_HIDDEN
;
...
...
dlls/d3d10core/device.c
View file @
887a4ff3
...
...
@@ -133,7 +133,7 @@ static void STDMETHODCALLTYPE d3d10_device_PSSetShader(ID3D10Device *iface,
ID3D10PixelShader
*
shader
)
{
struct
d3d10_device
*
This
=
impl_from_ID3D10Device
(
iface
);
struct
d3d10_pixel_shader
*
ps
=
(
struct
d3d10_pixel_shader
*
)
shader
;
struct
d3d10_pixel_shader
*
ps
=
unsafe_impl_from_ID3D10PixelShader
(
shader
)
;
TRACE
(
"iface %p, shader %p
\n
"
,
iface
,
shader
);
...
...
dlls/d3d10core/shader.c
View file @
887a4ff3
...
...
@@ -419,6 +419,11 @@ HRESULT d3d10_geometry_shader_init(struct d3d10_geometry_shader *shader, struct
return
S_OK
;
}
static
inline
struct
d3d10_pixel_shader
*
impl_from_ID3D10PixelShader
(
ID3D10PixelShader
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3d10_pixel_shader
,
vtbl
);
}
/* IUnknown methods */
static
HRESULT
STDMETHODCALLTYPE
d3d10_pixel_shader_QueryInterface
(
ID3D10PixelShader
*
iface
,
...
...
@@ -553,3 +558,12 @@ HRESULT d3d10_pixel_shader_init(struct d3d10_pixel_shader *shader, struct d3d10_
return
S_OK
;
}
struct
d3d10_pixel_shader
*
unsafe_impl_from_ID3D10PixelShader
(
ID3D10PixelShader
*
iface
)
{
if
(
!
iface
)
return
NULL
;
assert
(
iface
->
lpVtbl
==
&
d3d10_pixel_shader_vtbl
);
return
impl_from_ID3D10PixelShader
(
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