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
31fc6814
Commit
31fc6814
authored
Jul 20, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Implement d3d10_effect_rasterizer_variable_GetBackingStore().
parent
a1fcb537
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
16 deletions
+24
-16
effect.c
dlls/d3d10/effect.c
+12
-2
effect.c
dlls/d3d10/tests/effect.c
+12
-14
No files found.
dlls/d3d10/effect.c
View file @
31fc6814
...
...
@@ -6250,9 +6250,19 @@ static HRESULT STDMETHODCALLTYPE d3d10_effect_rasterizer_variable_GetRasterizerS
static
HRESULT
STDMETHODCALLTYPE
d3d10_effect_rasterizer_variable_GetBackingStore
(
ID3D10EffectRasterizerVariable
*
iface
,
UINT
index
,
D3D10_RASTERIZER_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_RASTERIZER_DESC
*
)
v
->
data
)[
index
];
return
S_OK
;
}
...
...
dlls/d3d10/tests/effect.c
View file @
31fc6814
...
...
@@ -3894,20 +3894,19 @@ static void test_effect_state_groups(ID3D10Device *device)
v
=
effect
->
lpVtbl
->
GetVariableByName
(
effect
,
"rast_state"
);
r
=
v
->
lpVtbl
->
AsRasterizer
(
v
);
memset
(
&
rast_desc
,
0
,
sizeof
(
rast_desc
));
r
->
lpVtbl
->
GetBackingStore
(
r
,
0
,
&
rast_desc
);
todo_wine
ok
(
rast_desc
.
FillMode
==
D3D10_FILL_WIREFRAME
,
"Got unexpected FillMode %#x.
\n
"
,
rast_desc
.
FillMode
);
todo_wine
ok
(
rast_desc
.
CullMode
==
D3D10_CULL_FRONT
,
"Got unexpected CullMode %#x.
\n
"
,
rast_desc
.
CullMode
);
todo_wine
ok
(
rast_desc
.
FrontCounterClockwise
,
"Got unexpected FrontCounterClockwise %#x.
\n
"
,
ok
(
rast_desc
.
FillMode
==
D3D10_FILL_WIREFRAME
,
"Got unexpected FillMode %#x.
\n
"
,
rast_desc
.
FillMode
);
ok
(
rast_desc
.
CullMode
==
D3D10_CULL_FRONT
,
"Got unexpected CullMode %#x.
\n
"
,
rast_desc
.
CullMode
);
ok
(
rast_desc
.
FrontCounterClockwise
,
"Got unexpected FrontCounterClockwise %#x.
\n
"
,
rast_desc
.
FrontCounterClockwise
);
todo_wine
ok
(
rast_desc
.
DepthBias
==
-
4
,
"Got unexpected DepthBias %#x.
\n
"
,
rast_desc
.
DepthBias
);
todo_wine
ok
(
rast_desc
.
DepthBiasClamp
==
0
.
5
f
,
"Got unexpected DepthBiasClamp %.8e.
\n
"
,
rast_desc
.
DepthBiasClamp
);
todo_wine
ok
(
rast_desc
.
SlopeScaledDepthBias
==
0
.
25
f
,
"Got unexpected SlopeScaledDepthBias %.8e.
\n
"
,
ok
(
rast_desc
.
DepthBias
==
-
4
,
"Got unexpected DepthBias %#x.
\n
"
,
rast_desc
.
DepthBias
);
ok
(
rast_desc
.
DepthBiasClamp
==
0
.
5
f
,
"Got unexpected DepthBiasClamp %.8e.
\n
"
,
rast_desc
.
DepthBiasClamp
);
ok
(
rast_desc
.
SlopeScaledDepthBias
==
0
.
25
f
,
"Got unexpected SlopeScaledDepthBias %.8e.
\n
"
,
rast_desc
.
SlopeScaledDepthBias
);
ok
(
!
rast_desc
.
DepthClipEnable
,
"Got unexpected DepthClipEnable %#x.
\n
"
,
rast_desc
.
DepthClipEnable
);
todo_wine
ok
(
rast_desc
.
ScissorEnable
,
"Got unexpected ScissorEnable %#x.
\n
"
,
rast_desc
.
ScissorEnable
);
todo_wine
ok
(
rast_desc
.
MultisampleEnable
,
"Got unexpected MultisampleEnable %#x.
\n
"
,
rast_desc
.
MultisampleEnable
);
todo_wine
ok
(
rast_desc
.
AntialiasedLineEnable
,
"Got unexpected AntialiasedLineEnable %#x.
\n
"
,
ok
(
rast_desc
.
ScissorEnable
,
"Got unexpected ScissorEnable %#x.
\n
"
,
rast_desc
.
ScissorEnable
);
ok
(
rast_desc
.
MultisampleEnable
,
"Got unexpected MultisampleEnable %#x.
\n
"
,
rast_desc
.
MultisampleEnable
);
ok
(
rast_desc
.
AntialiasedLineEnable
,
"Got unexpected AntialiasedLineEnable %#x.
\n
"
,
rast_desc
.
AntialiasedLineEnable
);
technique
=
effect
->
lpVtbl
->
GetTechniqueByName
(
effect
,
"tech0"
);
...
...
@@ -4145,17 +4144,16 @@ static void test_effect_state_group_defaults(ID3D10Device *device)
v
=
effect
->
lpVtbl
->
GetVariableByName
(
effect
,
"rast_state"
);
r
=
v
->
lpVtbl
->
AsRasterizer
(
v
);
memset
(
&
rast_desc
,
0
,
sizeof
(
rast_desc
));
r
->
lpVtbl
->
GetBackingStore
(
r
,
0
,
&
rast_desc
);
todo_wine
ok
(
rast_desc
.
FillMode
==
D3D10_FILL_SOLID
,
"Got unexpected FillMode %#x.
\n
"
,
rast_desc
.
FillMode
);
todo_wine
ok
(
rast_desc
.
CullMode
==
D3D10_CULL_BACK
,
"Got unexpected CullMode %#x.
\n
"
,
rast_desc
.
CullMode
);
ok
(
rast_desc
.
FillMode
==
D3D10_FILL_SOLID
,
"Got unexpected FillMode %#x.
\n
"
,
rast_desc
.
FillMode
);
ok
(
rast_desc
.
CullMode
==
D3D10_CULL_BACK
,
"Got unexpected CullMode %#x.
\n
"
,
rast_desc
.
CullMode
);
ok
(
!
rast_desc
.
FrontCounterClockwise
,
"Got unexpected FrontCounterClockwise %#x.
\n
"
,
rast_desc
.
FrontCounterClockwise
);
ok
(
rast_desc
.
DepthBias
==
0
,
"Got unexpected DepthBias %#x.
\n
"
,
rast_desc
.
DepthBias
);
ok
(
rast_desc
.
DepthBiasClamp
==
0
.
0
f
,
"Got unexpected DepthBiasClamp %.8e.
\n
"
,
rast_desc
.
DepthBiasClamp
);
ok
(
rast_desc
.
SlopeScaledDepthBias
==
0
.
0
f
,
"Got unexpected SlopeScaledDepthBias %.8e.
\n
"
,
rast_desc
.
SlopeScaledDepthBias
);
todo_wine
ok
(
rast_desc
.
DepthClipEnable
,
"Got unexpected DepthClipEnable %#x.
\n
"
,
rast_desc
.
DepthClipEnable
);
ok
(
rast_desc
.
DepthClipEnable
,
"Got unexpected DepthClipEnable %#x.
\n
"
,
rast_desc
.
DepthClipEnable
);
ok
(
!
rast_desc
.
ScissorEnable
,
"Got unexpected ScissorEnable %#x.
\n
"
,
rast_desc
.
ScissorEnable
);
ok
(
!
rast_desc
.
MultisampleEnable
,
"Got unexpected MultisampleEnable %#x.
\n
"
,
rast_desc
.
MultisampleEnable
);
ok
(
!
rast_desc
.
AntialiasedLineEnable
,
"Got unexpected AntialiasedLineEnable %#x.
\n
"
,
...
...
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