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
2ffa29d6
Commit
2ffa29d6
authored
Feb 25, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Implement d3d10_input_layout_SetPrivateData().
parent
e7c89285
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
d3d10core_private.h
dlls/d3d10core/d3d10core_private.h
+1
-0
inputlayout.c
dlls/d3d10core/inputlayout.c
+10
-2
No files found.
dlls/d3d10core/d3d10core_private.h
View file @
2ffa29d6
...
...
@@ -185,6 +185,7 @@ struct d3d10_input_layout
ID3D10InputLayout
ID3D10InputLayout_iface
;
LONG
refcount
;
struct
wined3d_private_store
private_store
;
struct
wined3d_vertex_declaration
*
wined3d_decl
;
};
...
...
dlls/d3d10core/inputlayout.c
View file @
2ffa29d6
...
...
@@ -174,10 +174,12 @@ static HRESULT STDMETHODCALLTYPE d3d10_input_layout_GetPrivateData(ID3D10InputLa
static
HRESULT
STDMETHODCALLTYPE
d3d10_input_layout_SetPrivateData
(
ID3D10InputLayout
*
iface
,
REFGUID
guid
,
UINT
data_size
,
const
void
*
data
)
{
FIXME
(
"iface %p, guid %s, data_size %u, data %p stub!
\n
"
,
struct
d3d10_input_layout
*
layout
=
impl_from_ID3D10InputLayout
(
iface
);
TRACE
(
"iface %p, guid %s, data_size %u, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
return
E_NOTIMPL
;
return
d3d10_set_private_data
(
&
layout
->
private_store
,
guid
,
data_size
,
data
)
;
}
static
HRESULT
STDMETHODCALLTYPE
d3d10_input_layout_SetPrivateDataInterface
(
ID3D10InputLayout
*
iface
,
...
...
@@ -203,6 +205,9 @@ static const struct ID3D10InputLayoutVtbl d3d10_input_layout_vtbl =
static
void
STDMETHODCALLTYPE
d3d10_input_layout_wined3d_object_destroyed
(
void
*
parent
)
{
struct
d3d10_input_layout
*
layout
=
parent
;
wined3d_private_store_cleanup
(
&
layout
->
private_store
);
HeapFree
(
GetProcessHeap
(),
0
,
parent
);
}
...
...
@@ -221,12 +226,14 @@ HRESULT d3d10_input_layout_init(struct d3d10_input_layout *layout, struct d3d10_
layout
->
ID3D10InputLayout_iface
.
lpVtbl
=
&
d3d10_input_layout_vtbl
;
layout
->
refcount
=
1
;
wined3d_private_store_init
(
&
layout
->
private_store
);
hr
=
d3d10_input_layout_to_wined3d_declaration
(
element_descs
,
element_count
,
shader_byte_code
,
shader_byte_code_length
,
&
wined3d_elements
,
&
wined3d_element_count
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to create wined3d vertex declaration elements, hr %#x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
layout
->
private_store
);
return
hr
;
}
...
...
@@ -236,6 +243,7 @@ HRESULT d3d10_input_layout_init(struct d3d10_input_layout *layout, struct d3d10_
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to create wined3d vertex declaration, hr %#x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
layout
->
private_store
);
return
hr
;
}
...
...
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