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
721d3990
Commit
721d3990
authored
Mar 11, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Implement d3d10_texture3d_SetPrivateData().
parent
f205b413
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
d3d10core_private.h
dlls/d3d10core/d3d10core_private.h
+1
-0
texture.c
dlls/d3d10core/texture.c
+9
-2
No files found.
dlls/d3d10core/d3d10core_private.h
View file @
721d3990
...
...
@@ -107,6 +107,7 @@ struct d3d10_texture3d
ID3D10Texture3D
ID3D10Texture3D_iface
;
LONG
refcount
;
struct
wined3d_private_store
private_store
;
struct
wined3d_texture
*
wined3d_texture
;
D3D10_TEXTURE3D_DESC
desc
;
ID3D10Device1
*
device
;
...
...
dlls/d3d10core/texture.c
View file @
721d3990
...
...
@@ -404,6 +404,9 @@ static ULONG STDMETHODCALLTYPE d3d10_texture3d_AddRef(ID3D10Texture3D *iface)
static
void
STDMETHODCALLTYPE
d3d10_texture3d_wined3d_object_released
(
void
*
parent
)
{
struct
d3d10_texture3d
*
texture
=
parent
;
wined3d_private_store_cleanup
(
&
texture
->
private_store
);
HeapFree
(
GetProcessHeap
(),
0
,
parent
);
}
...
...
@@ -449,10 +452,12 @@ static HRESULT STDMETHODCALLTYPE d3d10_texture3d_GetPrivateData(ID3D10Texture3D
static
HRESULT
STDMETHODCALLTYPE
d3d10_texture3d_SetPrivateData
(
ID3D10Texture3D
*
iface
,
REFGUID
guid
,
UINT
data_size
,
const
void
*
data
)
{
FIXME
(
"iface %p, guid %s, data_size %u, data %p stub!
\n
"
,
struct
d3d10_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
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
(
&
texture
->
private_store
,
guid
,
data_size
,
data
)
;
}
static
HRESULT
STDMETHODCALLTYPE
d3d10_texture3d_SetPrivateDataInterface
(
ID3D10Texture3D
*
iface
,
...
...
@@ -567,6 +572,7 @@ HRESULT d3d10_texture3d_init(struct d3d10_texture3d *texture, struct d3d10_devic
texture
->
ID3D10Texture3D_iface
.
lpVtbl
=
&
d3d10_texture3d_vtbl
;
texture
->
refcount
=
1
;
wined3d_private_store_init
(
&
texture
->
private_store
);
texture
->
desc
=
*
desc
;
wined3d_desc
.
resource_type
=
WINED3D_RTYPE_VOLUME_TEXTURE
;
...
...
@@ -587,6 +593,7 @@ HRESULT d3d10_texture3d_init(struct d3d10_texture3d *texture, struct d3d10_devic
&
d3d10_texture3d_wined3d_parent_ops
,
&
texture
->
wined3d_texture
)))
{
WARN
(
"Failed to create wined3d texture, hr %#x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
texture
->
private_store
);
return
hr
;
}
texture
->
desc
.
MipLevels
=
levels
;
...
...
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