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
0707fa19
Commit
0707fa19
authored
Sep 01, 2015
by
Józef Kucia
Committed by
Alexandre Julliard
Sep 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Rename d3d10_texture3d to d3d_texture3d.
parent
f9ecce38
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
21 deletions
+21
-21
d3d11_private.h
dlls/d3d11/d3d11_private.h
+2
-2
device.c
dlls/d3d11/device.c
+2
-2
texture.c
dlls/d3d11/texture.c
+17
-17
No files found.
dlls/d3d11/d3d11_private.h
View file @
0707fa19
...
...
@@ -117,7 +117,7 @@ HRESULT d3d_texture2d_create(struct d3d_device *device, const D3D11_TEXTURE2D_DE
struct
d3d_texture2d
*
unsafe_impl_from_ID3D10Texture2D
(
ID3D10Texture2D
*
iface
)
DECLSPEC_HIDDEN
;
/* ID3D10Texture3D */
struct
d3d
10
_texture3d
struct
d3d_texture3d
{
ID3D10Texture3D
ID3D10Texture3D_iface
;
LONG
refcount
;
...
...
@@ -128,7 +128,7 @@ struct d3d10_texture3d
ID3D10Device1
*
device
;
};
HRESULT
d3d
10_texture3d_init
(
struct
d3d10
_texture3d
*
texture
,
struct
d3d_device
*
device
,
HRESULT
d3d
_texture3d_init
(
struct
d3d
_texture3d
*
texture
,
struct
d3d_device
*
device
,
const
D3D10_TEXTURE3D_DESC
*
desc
,
const
D3D10_SUBRESOURCE_DATA
*
data
)
DECLSPEC_HIDDEN
;
/* ID3D10Buffer */
...
...
dlls/d3d11/device.c
View file @
0707fa19
...
...
@@ -2044,7 +2044,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateTexture3D(ID3D10Device1 *ifa
ID3D10Texture3D
**
texture
)
{
struct
d3d_device
*
device
=
impl_from_ID3D10Device
(
iface
);
struct
d3d
10
_texture3d
*
object
;
struct
d3d_texture3d
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, desc %p, data %p, texture %p.
\n
"
,
iface
,
desc
,
data
,
texture
);
...
...
@@ -2053,7 +2053,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateTexture3D(ID3D10Device1 *ifa
if
(
!
object
)
return
E_OUTOFMEMORY
;
if
(
FAILED
(
hr
=
d3d
10
_texture3d_init
(
object
,
device
,
desc
,
data
)))
if
(
FAILED
(
hr
=
d3d_texture3d_init
(
object
,
device
,
desc
,
data
)))
{
WARN
(
"Failed to initialize texture, hr %#x.
\n
"
,
hr
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
...
...
dlls/d3d11/texture.c
View file @
0707fa19
...
...
@@ -542,9 +542,9 @@ HRESULT d3d_texture2d_create(struct d3d_device *device, const D3D11_TEXTURE2D_DE
return
S_OK
;
}
static
inline
struct
d3d
10
_texture3d
*
impl_from_ID3D10Texture3D
(
ID3D10Texture3D
*
iface
)
static
inline
struct
d3d_texture3d
*
impl_from_ID3D10Texture3D
(
ID3D10Texture3D
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3d
10
_texture3d
,
ID3D10Texture3D_iface
);
return
CONTAINING_RECORD
(
iface
,
struct
d3d_texture3d
,
ID3D10Texture3D_iface
);
}
static
HRESULT
STDMETHODCALLTYPE
d3d10_texture3d_QueryInterface
(
ID3D10Texture3D
*
iface
,
REFIID
riid
,
void
**
object
)
...
...
@@ -569,7 +569,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_texture3d_QueryInterface(ID3D10Texture3D
static
ULONG
STDMETHODCALLTYPE
d3d10_texture3d_AddRef
(
ID3D10Texture3D
*
iface
)
{
struct
d3d
10
_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
struct
d3d_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
texture
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
texture
,
refcount
);
...
...
@@ -585,9 +585,9 @@ static ULONG STDMETHODCALLTYPE d3d10_texture3d_AddRef(ID3D10Texture3D *iface)
return
refcount
;
}
static
void
STDMETHODCALLTYPE
d3d
10
_texture3d_wined3d_object_released
(
void
*
parent
)
static
void
STDMETHODCALLTYPE
d3d_texture3d_wined3d_object_released
(
void
*
parent
)
{
struct
d3d
10
_texture3d
*
texture
=
parent
;
struct
d3d_texture3d
*
texture
=
parent
;
wined3d_private_store_cleanup
(
&
texture
->
private_store
);
HeapFree
(
GetProcessHeap
(),
0
,
parent
);
...
...
@@ -595,7 +595,7 @@ static void STDMETHODCALLTYPE d3d10_texture3d_wined3d_object_released(void *pare
static
ULONG
STDMETHODCALLTYPE
d3d10_texture3d_Release
(
ID3D10Texture3D
*
iface
)
{
struct
d3d
10
_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
struct
d3d_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
texture
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
texture
,
refcount
);
...
...
@@ -617,7 +617,7 @@ static ULONG STDMETHODCALLTYPE d3d10_texture3d_Release(ID3D10Texture3D *iface)
static
void
STDMETHODCALLTYPE
d3d10_texture3d_GetDevice
(
ID3D10Texture3D
*
iface
,
ID3D10Device
**
device
)
{
struct
d3d
10
_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
struct
d3d_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
TRACE
(
"iface %p, device %p.
\n
"
,
iface
,
device
);
...
...
@@ -628,7 +628,7 @@ static void STDMETHODCALLTYPE d3d10_texture3d_GetDevice(ID3D10Texture3D *iface,
static
HRESULT
STDMETHODCALLTYPE
d3d10_texture3d_GetPrivateData
(
ID3D10Texture3D
*
iface
,
REFGUID
guid
,
UINT
*
data_size
,
void
*
data
)
{
struct
d3d
10
_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
struct
d3d_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
TRACE
(
"iface %p, guid %s, data_size %p, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
...
...
@@ -639,7 +639,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_texture3d_GetPrivateData(ID3D10Texture3D
static
HRESULT
STDMETHODCALLTYPE
d3d10_texture3d_SetPrivateData
(
ID3D10Texture3D
*
iface
,
REFGUID
guid
,
UINT
data_size
,
const
void
*
data
)
{
struct
d3d
10
_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
struct
d3d_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
TRACE
(
"iface %p, guid %s, data_size %u, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
...
...
@@ -650,7 +650,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_texture3d_SetPrivateData(ID3D10Texture3D
static
HRESULT
STDMETHODCALLTYPE
d3d10_texture3d_SetPrivateDataInterface
(
ID3D10Texture3D
*
iface
,
REFGUID
guid
,
const
IUnknown
*
data
)
{
struct
d3d
10
_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
struct
d3d_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
TRACE
(
"iface %p, guid %s, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data
);
...
...
@@ -680,7 +680,7 @@ static UINT STDMETHODCALLTYPE d3d10_texture3d_GetEvictionPriority(ID3D10Texture3
static
HRESULT
STDMETHODCALLTYPE
d3d10_texture3d_Map
(
ID3D10Texture3D
*
iface
,
UINT
sub_resource_idx
,
D3D10_MAP
map_type
,
UINT
map_flags
,
D3D10_MAPPED_TEXTURE3D
*
mapped_texture
)
{
struct
d3d
10
_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
struct
d3d_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
struct
wined3d_map_desc
wined3d_map_desc
;
struct
wined3d_resource
*
sub_resource
;
HRESULT
hr
;
...
...
@@ -708,7 +708,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_texture3d_Map(ID3D10Texture3D *iface, UIN
static
void
STDMETHODCALLTYPE
d3d10_texture3d_Unmap
(
ID3D10Texture3D
*
iface
,
UINT
sub_resource_idx
)
{
struct
d3d
10
_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
struct
d3d_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
struct
wined3d_resource
*
sub_resource
;
TRACE
(
"iface %p, sub_resource_idx %u.
\n
"
,
iface
,
sub_resource_idx
);
...
...
@@ -726,7 +726,7 @@ static void STDMETHODCALLTYPE d3d10_texture3d_Unmap(ID3D10Texture3D *iface, UINT
static
void
STDMETHODCALLTYPE
d3d10_texture3d_GetDesc
(
ID3D10Texture3D
*
iface
,
D3D10_TEXTURE3D_DESC
*
desc
)
{
struct
d3d
10
_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
struct
d3d_texture3d
*
texture
=
impl_from_ID3D10Texture3D
(
iface
);
TRACE
(
"iface %p, desc %p.
\n
"
,
iface
,
desc
);
...
...
@@ -754,12 +754,12 @@ static const struct ID3D10Texture3DVtbl d3d10_texture3d_vtbl =
d3d10_texture3d_GetDesc
,
};
static
const
struct
wined3d_parent_ops
d3d
10
_texture3d_wined3d_parent_ops
=
static
const
struct
wined3d_parent_ops
d3d_texture3d_wined3d_parent_ops
=
{
d3d
10
_texture3d_wined3d_object_released
,
d3d_texture3d_wined3d_object_released
,
};
HRESULT
d3d
10_texture3d_init
(
struct
d3d10
_texture3d
*
texture
,
struct
d3d_device
*
device
,
HRESULT
d3d
_texture3d_init
(
struct
d3d
_texture3d
*
texture
,
struct
d3d_device
*
device
,
const
D3D10_TEXTURE3D_DESC
*
desc
,
const
D3D10_SUBRESOURCE_DATA
*
data
)
{
struct
wined3d_resource_desc
wined3d_desc
;
...
...
@@ -787,7 +787,7 @@ HRESULT d3d10_texture3d_init(struct d3d10_texture3d *texture, struct d3d_device
if
(
FAILED
(
hr
=
wined3d_texture_create
(
device
->
wined3d_device
,
&
wined3d_desc
,
levels
,
0
,
(
struct
wined3d_sub_resource_data
*
)
data
,
texture
,
&
d3d
10
_texture3d_wined3d_parent_ops
,
&
texture
->
wined3d_texture
)))
&
d3d_texture3d_wined3d_parent_ops
,
&
texture
->
wined3d_texture
)))
{
WARN
(
"Failed to create wined3d texture, hr %#x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
texture
->
private_store
);
...
...
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