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
44fa6faa
Commit
44fa6faa
authored
Sep 09, 2015
by
Józef Kucia
Committed by
Alexandre Julliard
Sep 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Rename d3d10_rendertarget_view to d3d_rendertarget_view.
parent
86d70c67
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
20 deletions
+20
-20
d3d11_private.h
dlls/d3d11/d3d11_private.h
+3
-3
device.c
dlls/d3d11/device.c
+5
-5
view.c
dlls/d3d11/view.c
+12
-12
No files found.
dlls/d3d11/d3d11_private.h
View file @
44fa6faa
...
...
@@ -171,7 +171,7 @@ HRESULT d3d_depthstencil_view_create(struct d3d_device *device, ID3D11Resource *
struct
d3d_depthstencil_view
*
unsafe_impl_from_ID3D10DepthStencilView
(
ID3D10DepthStencilView
*
iface
)
DECLSPEC_HIDDEN
;
/* ID3D10RenderTargetView */
struct
d3d
10
_rendertarget_view
struct
d3d_rendertarget_view
{
ID3D10RenderTargetView
ID3D10RenderTargetView_iface
;
LONG
refcount
;
...
...
@@ -183,9 +183,9 @@ struct d3d10_rendertarget_view
ID3D10Device1
*
device
;
};
HRESULT
d3d
10_rendertarget_view_init
(
struct
d3d10
_rendertarget_view
*
view
,
struct
d3d_device
*
device
,
HRESULT
d3d
_rendertarget_view_init
(
struct
d3d
_rendertarget_view
*
view
,
struct
d3d_device
*
device
,
ID3D10Resource
*
resource
,
const
D3D10_RENDER_TARGET_VIEW_DESC
*
desc
)
DECLSPEC_HIDDEN
;
struct
d3d
10
_rendertarget_view
*
unsafe_impl_from_ID3D10RenderTargetView
(
ID3D10RenderTargetView
*
iface
)
DECLSPEC_HIDDEN
;
struct
d3d_rendertarget_view
*
unsafe_impl_from_ID3D10RenderTargetView
(
ID3D10RenderTargetView
*
iface
)
DECLSPEC_HIDDEN
;
/* ID3D10ShaderResourceView */
struct
d3d10_shader_resource_view
...
...
dlls/d3d11/device.c
View file @
44fa6faa
...
...
@@ -940,7 +940,7 @@ static void STDMETHODCALLTYPE d3d10_device_OMSetRenderTargets(ID3D10Device1 *ifa
wined3d_mutex_lock
();
for
(
i
=
0
;
i
<
render_target_view_count
;
++
i
)
{
struct
d3d
10
_rendertarget_view
*
rtv
=
unsafe_impl_from_ID3D10RenderTargetView
(
render_target_views
[
i
]);
struct
d3d_rendertarget_view
*
rtv
=
unsafe_impl_from_ID3D10RenderTargetView
(
render_target_views
[
i
]);
wined3d_device_set_rendertarget_view
(
device
->
wined3d_device
,
i
,
rtv
?
rtv
->
wined3d_view
:
NULL
,
FALSE
);
...
...
@@ -1210,7 +1210,7 @@ static void STDMETHODCALLTYPE d3d10_device_ClearRenderTargetView(ID3D10Device1 *
ID3D10RenderTargetView
*
render_target_view
,
const
FLOAT
color_rgba
[
4
])
{
struct
d3d_device
*
device
=
impl_from_ID3D10Device
(
iface
);
struct
d3d
10
_rendertarget_view
*
view
=
unsafe_impl_from_ID3D10RenderTargetView
(
render_target_view
);
struct
d3d_rendertarget_view
*
view
=
unsafe_impl_from_ID3D10RenderTargetView
(
render_target_view
);
const
struct
wined3d_color
color
=
{
color_rgba
[
0
],
color_rgba
[
1
],
color_rgba
[
2
],
color_rgba
[
3
]};
HRESULT
hr
;
...
...
@@ -1692,7 +1692,7 @@ static void STDMETHODCALLTYPE d3d10_device_OMGetRenderTargets(ID3D10Device1 *ifa
wined3d_mutex_lock
();
if
(
render_target_views
)
{
struct
d3d
10
_rendertarget_view
*
view_impl
;
struct
d3d_rendertarget_view
*
view_impl
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
view_count
;
++
i
)
...
...
@@ -2122,7 +2122,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateRenderTargetView(ID3D10Devic
ID3D10Resource
*
resource
,
const
D3D10_RENDER_TARGET_VIEW_DESC
*
desc
,
ID3D10RenderTargetView
**
view
)
{
struct
d3d_device
*
device
=
impl_from_ID3D10Device
(
iface
);
struct
d3d
10
_rendertarget_view
*
object
;
struct
d3d_rendertarget_view
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, resource %p, desc %p, view %p.
\n
"
,
iface
,
resource
,
desc
,
view
);
...
...
@@ -2130,7 +2130,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateRenderTargetView(ID3D10Devic
if
(
!
(
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
))))
return
E_OUTOFMEMORY
;
if
(
FAILED
(
hr
=
d3d
10
_rendertarget_view_init
(
object
,
device
,
resource
,
desc
)))
if
(
FAILED
(
hr
=
d3d_rendertarget_view_init
(
object
,
device
,
resource
,
desc
)))
{
WARN
(
"Failed to initialize rendertarget view, hr %#x.
\n
"
,
hr
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
...
...
dlls/d3d11/view.c
View file @
44fa6faa
...
...
@@ -766,9 +766,9 @@ struct d3d_depthstencil_view *unsafe_impl_from_ID3D10DepthStencilView(ID3D10Dept
return
impl_from_ID3D10DepthStencilView
(
iface
);
}
static
inline
struct
d3d
10
_rendertarget_view
*
impl_from_ID3D10RenderTargetView
(
ID3D10RenderTargetView
*
iface
)
static
inline
struct
d3d_rendertarget_view
*
impl_from_ID3D10RenderTargetView
(
ID3D10RenderTargetView
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3d
10
_rendertarget_view
,
ID3D10RenderTargetView_iface
);
return
CONTAINING_RECORD
(
iface
,
struct
d3d_rendertarget_view
,
ID3D10RenderTargetView_iface
);
}
/* IUnknown methods */
...
...
@@ -796,7 +796,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_rendertarget_view_QueryInterface(ID3D10Re
static
ULONG
STDMETHODCALLTYPE
d3d10_rendertarget_view_AddRef
(
ID3D10RenderTargetView
*
iface
)
{
struct
d3d
10
_rendertarget_view
*
This
=
impl_from_ID3D10RenderTargetView
(
iface
);
struct
d3d_rendertarget_view
*
This
=
impl_from_ID3D10RenderTargetView
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
This
->
refcount
);
TRACE
(
"%p increasing refcount to %u
\n
"
,
This
,
refcount
);
...
...
@@ -806,7 +806,7 @@ static ULONG STDMETHODCALLTYPE d3d10_rendertarget_view_AddRef(ID3D10RenderTarget
static
ULONG
STDMETHODCALLTYPE
d3d10_rendertarget_view_Release
(
ID3D10RenderTargetView
*
iface
)
{
struct
d3d
10
_rendertarget_view
*
This
=
impl_from_ID3D10RenderTargetView
(
iface
);
struct
d3d_rendertarget_view
*
This
=
impl_from_ID3D10RenderTargetView
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
This
->
refcount
);
TRACE
(
"%p decreasing refcount to %u
\n
"
,
This
,
refcount
);
...
...
@@ -829,7 +829,7 @@ static ULONG STDMETHODCALLTYPE d3d10_rendertarget_view_Release(ID3D10RenderTarge
static
void
STDMETHODCALLTYPE
d3d10_rendertarget_view_GetDevice
(
ID3D10RenderTargetView
*
iface
,
ID3D10Device
**
device
)
{
struct
d3d
10
_rendertarget_view
*
view
=
impl_from_ID3D10RenderTargetView
(
iface
);
struct
d3d_rendertarget_view
*
view
=
impl_from_ID3D10RenderTargetView
(
iface
);
TRACE
(
"iface %p, device %p.
\n
"
,
iface
,
device
);
...
...
@@ -840,7 +840,7 @@ static void STDMETHODCALLTYPE d3d10_rendertarget_view_GetDevice(ID3D10RenderTarg
static
HRESULT
STDMETHODCALLTYPE
d3d10_rendertarget_view_GetPrivateData
(
ID3D10RenderTargetView
*
iface
,
REFGUID
guid
,
UINT
*
data_size
,
void
*
data
)
{
struct
d3d
10
_rendertarget_view
*
view
=
impl_from_ID3D10RenderTargetView
(
iface
);
struct
d3d_rendertarget_view
*
view
=
impl_from_ID3D10RenderTargetView
(
iface
);
TRACE
(
"iface %p, guid %s, data_size %p, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
...
...
@@ -851,7 +851,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_rendertarget_view_GetPrivateData(ID3D10Re
static
HRESULT
STDMETHODCALLTYPE
d3d10_rendertarget_view_SetPrivateData
(
ID3D10RenderTargetView
*
iface
,
REFGUID
guid
,
UINT
data_size
,
const
void
*
data
)
{
struct
d3d
10
_rendertarget_view
*
view
=
impl_from_ID3D10RenderTargetView
(
iface
);
struct
d3d_rendertarget_view
*
view
=
impl_from_ID3D10RenderTargetView
(
iface
);
TRACE
(
"iface %p, guid %s, data_size %u, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
...
...
@@ -862,7 +862,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_rendertarget_view_SetPrivateData(ID3D10Re
static
HRESULT
STDMETHODCALLTYPE
d3d10_rendertarget_view_SetPrivateDataInterface
(
ID3D10RenderTargetView
*
iface
,
REFGUID
guid
,
const
IUnknown
*
data
)
{
struct
d3d
10
_rendertarget_view
*
view
=
impl_from_ID3D10RenderTargetView
(
iface
);
struct
d3d_rendertarget_view
*
view
=
impl_from_ID3D10RenderTargetView
(
iface
);
TRACE
(
"iface %p, guid %s, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data
);
...
...
@@ -874,7 +874,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_rendertarget_view_SetPrivateDataInterface
static
void
STDMETHODCALLTYPE
d3d10_rendertarget_view_GetResource
(
ID3D10RenderTargetView
*
iface
,
ID3D10Resource
**
resource
)
{
struct
d3d
10
_rendertarget_view
*
view
=
impl_from_ID3D10RenderTargetView
(
iface
);
struct
d3d_rendertarget_view
*
view
=
impl_from_ID3D10RenderTargetView
(
iface
);
TRACE
(
"iface %p, resource %p
\n
"
,
iface
,
resource
);
...
...
@@ -887,7 +887,7 @@ static void STDMETHODCALLTYPE d3d10_rendertarget_view_GetResource(ID3D10RenderTa
static
void
STDMETHODCALLTYPE
d3d10_rendertarget_view_GetDesc
(
ID3D10RenderTargetView
*
iface
,
D3D10_RENDER_TARGET_VIEW_DESC
*
desc
)
{
struct
d3d
10
_rendertarget_view
*
This
=
impl_from_ID3D10RenderTargetView
(
iface
);
struct
d3d_rendertarget_view
*
This
=
impl_from_ID3D10RenderTargetView
(
iface
);
TRACE
(
"iface %p, desc %p
\n
"
,
iface
,
desc
);
...
...
@@ -974,7 +974,7 @@ static void wined3d_rendertarget_view_desc_from_d3d10core(struct wined3d_rendert
}
}
HRESULT
d3d
10_rendertarget_view_init
(
struct
d3d10
_rendertarget_view
*
view
,
struct
d3d_device
*
device
,
HRESULT
d3d
_rendertarget_view_init
(
struct
d3d
_rendertarget_view
*
view
,
struct
d3d_device
*
device
,
ID3D10Resource
*
resource
,
const
D3D10_RENDER_TARGET_VIEW_DESC
*
desc
)
{
struct
wined3d_rendertarget_view_desc
wined3d_desc
;
...
...
@@ -1021,7 +1021,7 @@ HRESULT d3d10_rendertarget_view_init(struct d3d10_rendertarget_view *view, struc
return
S_OK
;
}
struct
d3d
10
_rendertarget_view
*
unsafe_impl_from_ID3D10RenderTargetView
(
ID3D10RenderTargetView
*
iface
)
struct
d3d_rendertarget_view
*
unsafe_impl_from_ID3D10RenderTargetView
(
ID3D10RenderTargetView
*
iface
)
{
if
(
!
iface
)
return
NULL
;
...
...
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