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
e69c28a0
Commit
e69c28a0
authored
Oct 04, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Implement d3d10_device_OMSetBlendState().
parent
291edc48
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
d3d10core_private.h
dlls/d3d10core/d3d10core_private.h
+4
-0
device.c
dlls/d3d10core/device.c
+7
-1
state.c
dlls/d3d10core/state.c
+9
-0
No files found.
dlls/d3d10core/d3d10core_private.h
View file @
e69c28a0
...
...
@@ -217,6 +217,7 @@ struct d3d10_blend_state
};
HRESULT
d3d10_blend_state_init
(
struct
d3d10_blend_state
*
state
)
DECLSPEC_HIDDEN
;
struct
d3d10_blend_state
*
unsafe_impl_from_ID3D10BlendState
(
ID3D10BlendState
*
iface
)
DECLSPEC_HIDDEN
;
/* ID3D10DepthStencilState */
struct
d3d10_depthstencil_state
...
...
@@ -269,6 +270,9 @@ struct d3d10_device
struct
wined3d_device_parent
device_parent
;
struct
wined3d_device
*
wined3d_device
;
struct
d3d10_blend_state
*
blend_state
;
float
blend_factor
[
4
];
UINT
sample_mask
;
struct
d3d10_depthstencil_state
*
depth_stencil_state
;
UINT
stencil_ref
;
struct
d3d10_rasterizer_state
*
rasterizer_state
;
...
...
dlls/d3d10core/device.c
View file @
e69c28a0
...
...
@@ -318,8 +318,14 @@ static void STDMETHODCALLTYPE d3d10_device_OMSetRenderTargets(ID3D10Device *ifac
static
void
STDMETHODCALLTYPE
d3d10_device_OMSetBlendState
(
ID3D10Device
*
iface
,
ID3D10BlendState
*
blend_state
,
const
FLOAT
blend_factor
[
4
],
UINT
sample_mask
)
{
FIXME
(
"iface %p, blend_state %p, blend_factor [%f %f %f %f], sample_mask 0x%08x stub!
\n
"
,
struct
d3d10_device
*
device
=
impl_from_ID3D10Device
(
iface
);
TRACE
(
"iface %p, blend_state %p, blend_factor [%f %f %f %f], sample_mask 0x%08x.
\n
"
,
iface
,
blend_state
,
blend_factor
[
0
],
blend_factor
[
1
],
blend_factor
[
2
],
blend_factor
[
3
],
sample_mask
);
device
->
blend_state
=
unsafe_impl_from_ID3D10BlendState
(
blend_state
);
memcpy
(
device
->
blend_factor
,
blend_factor
,
4
*
sizeof
(
*
blend_factor
));
device
->
sample_mask
=
sample_mask
;
}
static
void
STDMETHODCALLTYPE
d3d10_device_OMSetDepthStencilState
(
ID3D10Device
*
iface
,
...
...
dlls/d3d10core/state.c
View file @
e69c28a0
...
...
@@ -140,6 +140,15 @@ HRESULT d3d10_blend_state_init(struct d3d10_blend_state *state)
return
S_OK
;
}
struct
d3d10_blend_state
*
unsafe_impl_from_ID3D10BlendState
(
ID3D10BlendState
*
iface
)
{
if
(
!
iface
)
return
NULL
;
assert
(
iface
->
lpVtbl
==
&
d3d10_blend_state_vtbl
);
return
impl_from_ID3D10BlendState
(
iface
);
}
static
inline
struct
d3d10_depthstencil_state
*
impl_from_ID3D10DepthStencilState
(
ID3D10DepthStencilState
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3d10_depthstencil_state
,
ID3D10DepthStencilState_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