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
93418213
Commit
93418213
authored
Oct 01, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Implement d3d10_effect_rasterizer_variable_GetRasterizerState().
parent
14b9f3d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
d3d10_private.h
dlls/d3d10/d3d10_private.h
+1
-0
effect.c
dlls/d3d10/effect.c
+23
-2
No files found.
dlls/d3d10/d3d10_private.h
View file @
93418213
...
...
@@ -111,6 +111,7 @@ struct d3d10_effect_state_object_variable
}
desc
;
union
{
ID3D10RasterizerState
*
rasterizer
;
ID3D10DepthStencilState
*
depth_stencil
;
ID3D10BlendState
*
blend
;
}
object
;
...
...
dlls/d3d10/effect.c
View file @
93418213
...
...
@@ -1581,6 +1581,11 @@ static HRESULT create_state_object(struct d3d10_effect_variable *v)
break
;
case
D3D10_SVT_RASTERIZER
:
if
(
FAILED
(
hr
=
ID3D10Device_CreateRasterizerState
(
device
,
&
v
->
u
.
state
.
desc
.
rasterizer
,
&
v
->
u
.
state
.
object
.
rasterizer
)))
return
hr
;
break
;
case
D3D10_SVT_SAMPLER
:
break
;
...
...
@@ -6486,9 +6491,25 @@ static HRESULT STDMETHODCALLTYPE d3d10_effect_rasterizer_variable_GetRawValue(ID
static
HRESULT
STDMETHODCALLTYPE
d3d10_effect_rasterizer_variable_GetRasterizerState
(
ID3D10EffectRasterizerVariable
*
iface
,
UINT
index
,
ID3D10RasterizerState
**
rasterizer_state
)
{
FIXME
(
"iface %p, index %u, rasterizer_state %p stub!
\n
"
,
iface
,
index
,
rasterizer_stat
e
);
struct
d3d10_effect_variable
*
v
=
impl_from_ID3D10EffectVariable
((
ID3D10EffectVariable
*
)
ifac
e
);
return
E_NOTIMPL
;
TRACE
(
"iface %p, index %u, rasterizer_state %p.
\n
"
,
iface
,
index
,
rasterizer_state
);
if
(
v
->
type
->
element_count
)
v
=
impl_from_ID3D10EffectVariable
(
iface
->
lpVtbl
->
GetElement
(
iface
,
index
));
else
if
(
index
)
return
E_FAIL
;
if
(
v
->
type
->
basetype
!=
D3D10_SVT_RASTERIZER
)
{
WARN
(
"Variable is not a rasterizer state.
\n
"
);
return
E_FAIL
;
}
if
((
*
rasterizer_state
=
v
->
u
.
state
.
object
.
rasterizer
))
ID3D10RasterizerState_AddRef
(
*
rasterizer_state
);
return
S_OK
;
}
static
HRESULT
STDMETHODCALLTYPE
d3d10_effect_rasterizer_variable_GetBackingStore
(
ID3D10EffectRasterizerVariable
*
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