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
4a626fda
Commit
4a626fda
authored
Oct 20, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Implement ID3D10Texture3D::Map().
parent
292c8c36
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
texture.c
dlls/d3d10core/texture.c
+22
-2
No files found.
dlls/d3d10core/texture.c
View file @
4a626fda
...
@@ -349,10 +349,30 @@ static UINT STDMETHODCALLTYPE d3d10_texture3d_GetEvictionPriority(ID3D10Texture3
...
@@ -349,10 +349,30 @@ static UINT STDMETHODCALLTYPE d3d10_texture3d_GetEvictionPriority(ID3D10Texture3
static
HRESULT
STDMETHODCALLTYPE
d3d10_texture3d_Map
(
ID3D10Texture3D
*
iface
,
UINT
sub_resource
,
static
HRESULT
STDMETHODCALLTYPE
d3d10_texture3d_Map
(
ID3D10Texture3D
*
iface
,
UINT
sub_resource
,
D3D10_MAP
map_type
,
UINT
map_flags
,
D3D10_MAPPED_TEXTURE3D
*
mapped_texture
)
D3D10_MAP
map_type
,
UINT
map_flags
,
D3D10_MAPPED_TEXTURE3D
*
mapped_texture
)
{
{
FIXME
(
"iface %p, sub_resource %u, map_type %u, map_flags %#x, mapped_texture %p stub!
\n
"
,
struct
d3d10_texture3d
*
texture
=
(
struct
d3d10_texture3d
*
)
iface
;
WINED3DLOCKED_BOX
wined3d_map_desc
;
HRESULT
hr
;
TRACE
(
"iface %p, sub_resource %u, map_type %u, map_flags %#x, mapped_texture %p.
\n
"
,
iface
,
sub_resource
,
map_type
,
map_flags
,
mapped_texture
);
iface
,
sub_resource
,
map_type
,
map_flags
,
mapped_texture
);
return
E_NOTIMPL
;
if
(
map_type
!=
D3D10_MAP_READ_WRITE
)
FIXME
(
"Ignoring map_type %#x.
\n
"
,
map_type
);
if
(
map_flags
)
FIXME
(
"Ignoring map_flags %#x.
\n
"
,
map_flags
);
hr
=
IWineD3DVolumeTexture_Map
(
texture
->
wined3d_texture
,
sub_resource
,
&
wined3d_map_desc
,
NULL
,
0
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to map texture, hr %#x.
\n
"
,
hr
);
return
hr
;
}
mapped_texture
->
pData
=
wined3d_map_desc
.
pBits
;
mapped_texture
->
RowPitch
=
wined3d_map_desc
.
RowPitch
;
mapped_texture
->
DepthPitch
=
wined3d_map_desc
.
SlicePitch
;
return
hr
;
}
}
static
void
STDMETHODCALLTYPE
d3d10_texture3d_Unmap
(
ID3D10Texture3D
*
iface
,
UINT
sub_resource
)
static
void
STDMETHODCALLTYPE
d3d10_texture3d_Unmap
(
ID3D10Texture3D
*
iface
,
UINT
sub_resource
)
...
...
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