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
32d4464e
Commit
32d4464e
authored
Jul 24, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Implement d3d10_effect_blend_variable_GetBackingStore().
parent
aaf47457
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
20 deletions
+29
-20
effect.c
dlls/d3d10/effect.c
+12
-2
effect.c
dlls/d3d10/tests/effect.c
+17
-18
No files found.
dlls/d3d10/effect.c
View file @
32d4464e
...
...
@@ -5909,9 +5909,19 @@ static HRESULT STDMETHODCALLTYPE d3d10_effect_blend_variable_GetBlendState(ID3D1
static
HRESULT
STDMETHODCALLTYPE
d3d10_effect_blend_variable_GetBackingStore
(
ID3D10EffectBlendVariable
*
iface
,
UINT
index
,
D3D10_BLEND_DESC
*
desc
)
{
FIXME
(
"iface %p, index %u, desc %p stub!
\n
"
,
iface
,
index
,
desc
);
struct
d3d10_effect_variable
*
v
=
impl_from_ID3D10EffectVariable
((
ID3D10EffectVariable
*
)
iface
);
return
E_NOTIMPL
;
TRACE
(
"iface %p, index %u, desc %p.
\n
"
,
iface
,
index
,
desc
);
if
(
index
>=
max
(
v
->
type
->
element_count
,
1
))
{
WARN
(
"Invalid index %u.
\n
"
,
index
);
return
E_FAIL
;
}
*
desc
=
((
D3D10_BLEND_DESC
*
)
v
->
data
)[
index
];
return
S_OK
;
}
...
...
dlls/d3d10/tests/effect.c
View file @
32d4464e
...
...
@@ -3845,23 +3845,22 @@ static void test_effect_state_groups(ID3D10Device *device)
v
=
effect
->
lpVtbl
->
GetVariableByName
(
effect
,
"blend_state"
);
b
=
v
->
lpVtbl
->
AsBlend
(
v
);
memset
(
&
blend_desc
,
0
,
sizeof
(
blend_desc
));
b
->
lpVtbl
->
GetBackingStore
(
b
,
0
,
&
blend_desc
);
ok
(
!
blend_desc
.
AlphaToCoverageEnable
,
"Got unexpected AlphaToCoverageEnable %#x.
\n
"
,
blend_desc
.
AlphaToCoverageEnable
);
todo_wine
ok
(
blend_desc
.
BlendEnable
[
0
],
"Got unexpected BlendEnable[0] %#x.
\n
"
,
blend_desc
.
BlendEnable
[
0
]);
ok
(
blend_desc
.
BlendEnable
[
0
],
"Got unexpected BlendEnable[0] %#x.
\n
"
,
blend_desc
.
BlendEnable
[
0
]);
ok
(
!
blend_desc
.
BlendEnable
[
7
],
"Got unexpected BlendEnable[7] %#x.
\n
"
,
blend_desc
.
BlendEnable
[
7
]);
todo_wine
ok
(
blend_desc
.
SrcBlend
==
D3D10_BLEND_ONE
,
"Got unexpected SrcBlend %#x.
\n
"
,
blend_desc
.
SrcBlend
);
todo_wine
ok
(
blend_desc
.
DestBlend
==
D3D10_BLEND_SRC_COLOR
,
"Got unexpected DestBlend %#x.
\n
"
,
blend_desc
.
DestBlend
);
todo_wine
ok
(
blend_desc
.
BlendOp
==
D3D10_BLEND_OP_MIN
,
"Got unexpected BlendOp %#x.
\n
"
,
blend_desc
.
BlendOp
);
todo_wine
ok
(
blend_desc
.
SrcBlendAlpha
==
D3D10_BLEND_SRC_ALPHA
,
"Got unexpected SrcBlendAlpha %#x.
\n
"
,
ok
(
blend_desc
.
SrcBlend
==
D3D10_BLEND_ONE
,
"Got unexpected SrcBlend %#x.
\n
"
,
blend_desc
.
SrcBlend
);
ok
(
blend_desc
.
DestBlend
==
D3D10_BLEND_SRC_COLOR
,
"Got unexpected DestBlend %#x.
\n
"
,
blend_desc
.
DestBlend
);
ok
(
blend_desc
.
BlendOp
==
D3D10_BLEND_OP_MIN
,
"Got unexpected BlendOp %#x.
\n
"
,
blend_desc
.
BlendOp
);
ok
(
blend_desc
.
SrcBlendAlpha
==
D3D10_BLEND_SRC_ALPHA
,
"Got unexpected SrcBlendAlpha %#x.
\n
"
,
blend_desc
.
SrcBlendAlpha
);
todo_wine
ok
(
blend_desc
.
DestBlendAlpha
==
D3D10_BLEND_INV_SRC_ALPHA
,
"Got unexpected DestBlendAlpha %#x.
\n
"
,
ok
(
blend_desc
.
DestBlendAlpha
==
D3D10_BLEND_INV_SRC_ALPHA
,
"Got unexpected DestBlendAlpha %#x.
\n
"
,
blend_desc
.
DestBlendAlpha
);
todo_wine
ok
(
blend_desc
.
BlendOpAlpha
==
D3D10_BLEND_OP_MAX
,
"Got unexpected BlendOpAlpha %#x.
\n
"
,
blend_desc
.
BlendOpAlpha
);
todo_wine
ok
(
blend_desc
.
RenderTargetWriteMask
[
0
]
==
0x8
,
"Got unexpected RenderTargetWriteMask[0] %#x.
\n
"
,
ok
(
blend_desc
.
BlendOpAlpha
==
D3D10_BLEND_OP_MAX
,
"Got unexpected BlendOpAlpha %#x.
\n
"
,
blend_desc
.
BlendOpAlpha
);
ok
(
blend_desc
.
RenderTargetWriteMask
[
0
]
==
0x8
,
"Got unexpected RenderTargetWriteMask[0] %#x.
\n
"
,
blend_desc
.
RenderTargetWriteMask
[
0
]);
todo_wine
ok
(
blend_desc
.
RenderTargetWriteMask
[
7
]
==
0x7
,
"Got unexpected RenderTargetWriteMask[7] %#x.
\n
"
,
ok
(
blend_desc
.
RenderTargetWriteMask
[
7
]
==
0x7
,
"Got unexpected RenderTargetWriteMask[7] %#x.
\n
"
,
blend_desc
.
RenderTargetWriteMask
[
7
]);
v
=
effect
->
lpVtbl
->
GetVariableByName
(
effect
,
"ds_state"
);
...
...
@@ -4100,17 +4099,17 @@ static void test_effect_state_group_defaults(ID3D10Device *device)
blend_desc
.
AlphaToCoverageEnable
);
ok
(
!
blend_desc
.
BlendEnable
[
0
],
"Got unexpected BlendEnable[0] %#x.
\n
"
,
blend_desc
.
BlendEnable
[
0
]);
ok
(
!
blend_desc
.
BlendEnable
[
7
],
"Got unexpected BlendEnable[7] %#x.
\n
"
,
blend_desc
.
BlendEnable
[
7
]);
todo_wine
ok
(
blend_desc
.
SrcBlend
==
D3D10_BLEND_SRC_ALPHA
,
"Got unexpected SrcBlend %#x.
\n
"
,
blend_desc
.
SrcBlend
);
todo_wine
ok
(
blend_desc
.
DestBlend
==
D3D10_BLEND_INV_SRC_ALPHA
,
"Got unexpected DestBlend %#x.
\n
"
,
blend_desc
.
DestBlend
);
todo_wine
ok
(
blend_desc
.
BlendOp
==
D3D10_BLEND_OP_ADD
,
"Got unexpected BlendOp %#x.
\n
"
,
blend_desc
.
BlendOp
);
todo_wine
ok
(
blend_desc
.
SrcBlendAlpha
==
D3D10_BLEND_SRC_ALPHA
,
"Got unexpected SrcBlendAlpha %#x.
\n
"
,
ok
(
blend_desc
.
SrcBlend
==
D3D10_BLEND_SRC_ALPHA
,
"Got unexpected SrcBlend %#x.
\n
"
,
blend_desc
.
SrcBlend
);
ok
(
blend_desc
.
DestBlend
==
D3D10_BLEND_INV_SRC_ALPHA
,
"Got unexpected DestBlend %#x.
\n
"
,
blend_desc
.
DestBlend
);
ok
(
blend_desc
.
BlendOp
==
D3D10_BLEND_OP_ADD
,
"Got unexpected BlendOp %#x.
\n
"
,
blend_desc
.
BlendOp
);
ok
(
blend_desc
.
SrcBlendAlpha
==
D3D10_BLEND_SRC_ALPHA
,
"Got unexpected SrcBlendAlpha %#x.
\n
"
,
blend_desc
.
SrcBlendAlpha
);
todo_wine
ok
(
blend_desc
.
DestBlendAlpha
==
D3D10_BLEND_INV_SRC_ALPHA
,
"Got unexpected DestBlendAlpha %#x.
\n
"
,
ok
(
blend_desc
.
DestBlendAlpha
==
D3D10_BLEND_INV_SRC_ALPHA
,
"Got unexpected DestBlendAlpha %#x.
\n
"
,
blend_desc
.
DestBlendAlpha
);
todo_wine
ok
(
blend_desc
.
BlendOpAlpha
==
D3D10_BLEND_OP_ADD
,
"Got unexpected BlendOpAlpha %#x.
\n
"
,
blend_desc
.
BlendOpAlpha
);
todo_wine
ok
(
blend_desc
.
RenderTargetWriteMask
[
0
]
==
0xf
,
"Got unexpected RenderTargetWriteMask[0] %#x.
\n
"
,
ok
(
blend_desc
.
BlendOpAlpha
==
D3D10_BLEND_OP_ADD
,
"Got unexpected BlendOpAlpha %#x.
\n
"
,
blend_desc
.
BlendOpAlpha
);
ok
(
blend_desc
.
RenderTargetWriteMask
[
0
]
==
0xf
,
"Got unexpected RenderTargetWriteMask[0] %#x.
\n
"
,
blend_desc
.
RenderTargetWriteMask
[
0
]);
todo_wine
ok
(
blend_desc
.
RenderTargetWriteMask
[
7
]
==
0xf
,
"Got unexpected RenderTargetWriteMask[7] %#x.
\n
"
,
ok
(
blend_desc
.
RenderTargetWriteMask
[
7
]
==
0xf
,
"Got unexpected RenderTargetWriteMask[7] %#x.
\n
"
,
blend_desc
.
RenderTargetWriteMask
[
7
]);
v
=
effect
->
lpVtbl
->
GetVariableByName
(
effect
,
"ds_state"
);
...
...
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