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
30fe1614
Commit
30fe1614
authored
Oct 06, 2015
by
Józef Kucia
Committed by
Alexandre Julliard
Oct 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Implement private data methods for ID3D11Device.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
parent
5b0fb73c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
35 deletions
+39
-35
device.c
dlls/d3d11/device.c
+39
-35
No files found.
dlls/d3d11/device.c
View file @
30fe1614
...
...
@@ -503,25 +503,49 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFeatureSupport(ID3D11Device *
static
HRESULT
STDMETHODCALLTYPE
d3d11_device_GetPrivateData
(
ID3D11Device
*
iface
,
REFGUID
guid
,
UINT
*
data_size
,
void
*
data
)
{
FIXME
(
"iface %p, guid %s, data_size %p, data %p stub!
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
IDXGIDevice
*
dxgi_device
;
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"iface %p, guid %s, data_size %p, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
if
(
FAILED
(
hr
=
ID3D11Device_QueryInterface
(
iface
,
&
IID_IDXGIDevice
,
(
void
**
)
&
dxgi_device
)))
return
hr
;
hr
=
IDXGIDevice_GetPrivateData
(
dxgi_device
,
guid
,
data_size
,
data
);
IDXGIDevice_Release
(
dxgi_device
);
return
hr
;
}
static
HRESULT
STDMETHODCALLTYPE
d3d11_device_SetPrivateData
(
ID3D11Device
*
iface
,
REFGUID
guid
,
UINT
data_size
,
const
void
*
data
)
{
FIXME
(
"iface %p, guid %s, data_size %u, data %p stub!
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
IDXGIDevice
*
dxgi_device
;
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"iface %p, guid %s, data_size %u, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
if
(
FAILED
(
hr
=
ID3D11Device_QueryInterface
(
iface
,
&
IID_IDXGIDevice
,
(
void
**
)
&
dxgi_device
)))
return
hr
;
hr
=
IDXGIDevice_SetPrivateData
(
dxgi_device
,
guid
,
data_size
,
data
);
IDXGIDevice_Release
(
dxgi_device
);
return
hr
;
}
static
HRESULT
STDMETHODCALLTYPE
d3d11_device_SetPrivateDataInterface
(
ID3D11Device
*
iface
,
REFGUID
guid
,
const
IUnknown
*
data
_iface
)
const
IUnknown
*
data
)
{
FIXME
(
"iface %p, guid %s, data_iface %p stub!
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_iface
);
IDXGIDevice
*
dxgi_device
;
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"iface %p, guid %s, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data
);
if
(
FAILED
(
hr
=
ID3D11Device_QueryInterface
(
iface
,
&
IID_IDXGIDevice
,
(
void
**
)
&
dxgi_device
)))
return
hr
;
hr
=
IDXGIDevice_SetPrivateDataInterface
(
dxgi_device
,
guid
,
data
);
IDXGIDevice_Release
(
dxgi_device
);
return
hr
;
}
static
D3D_FEATURE_LEVEL
STDMETHODCALLTYPE
d3d11_device_GetFeatureLevel
(
ID3D11Device
*
iface
)
...
...
@@ -2020,51 +2044,31 @@ static UINT STDMETHODCALLTYPE d3d10_device_GetExceptionMode(ID3D10Device1 *iface
static
HRESULT
STDMETHODCALLTYPE
d3d10_device_GetPrivateData
(
ID3D10Device1
*
iface
,
REFGUID
guid
,
UINT
*
data_size
,
void
*
data
)
{
IDXGIDevice
*
dxgi_device
;
HRESULT
hr
;
struct
d3d_device
*
device
=
impl_from_ID3D10Device
(
iface
);
TRACE
(
"iface %p, guid %s, data_size %p, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
TRACE
(
"iface %p, guid %s, data_size %p, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
if
(
FAILED
(
hr
=
ID3D10Device1_QueryInterface
(
iface
,
&
IID_IDXGIDevice
,
(
void
**
)
&
dxgi_device
)))
return
hr
;
hr
=
IDXGIDevice_GetPrivateData
(
dxgi_device
,
guid
,
data_size
,
data
);
IDXGIDevice_Release
(
dxgi_device
);
return
hr
;
return
d3d11_device_GetPrivateData
(
&
device
->
ID3D11Device_iface
,
guid
,
data_size
,
data
);
}
static
HRESULT
STDMETHODCALLTYPE
d3d10_device_SetPrivateData
(
ID3D10Device1
*
iface
,
REFGUID
guid
,
UINT
data_size
,
const
void
*
data
)
{
IDXGIDevice
*
dxgi_device
;
HRESULT
hr
;
TRACE
(
"iface %p, guid %s, data_size %u, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
struct
d3d_device
*
device
=
impl_from_ID3D10Device
(
iface
);
if
(
FAILED
(
hr
=
ID3D10Device1_QueryInterface
(
iface
,
&
IID_IDXGIDevice
,
(
void
**
)
&
dxgi_device
)))
return
hr
;
hr
=
IDXGIDevice_SetPrivateData
(
dxgi_device
,
guid
,
data_size
,
data
);
IDXGIDevice_Release
(
dxgi_device
);
TRACE
(
"iface %p, guid %s, data_size %u, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
return
hr
;
return
d3d11_device_SetPrivateData
(
&
device
->
ID3D11Device_iface
,
guid
,
data_size
,
data
)
;
}
static
HRESULT
STDMETHODCALLTYPE
d3d10_device_SetPrivateDataInterface
(
ID3D10Device1
*
iface
,
REFGUID
guid
,
const
IUnknown
*
data
)
{
IDXGIDevice
*
dxgi_device
;
HRESULT
hr
;
struct
d3d_device
*
device
=
impl_from_ID3D10Device
(
iface
);
TRACE
(
"iface %p, guid %s, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data
);
if
(
FAILED
(
hr
=
ID3D10Device1_QueryInterface
(
iface
,
&
IID_IDXGIDevice
,
(
void
**
)
&
dxgi_device
)))
return
hr
;
hr
=
IDXGIDevice_SetPrivateDataInterface
(
dxgi_device
,
guid
,
data
);
IDXGIDevice_Release
(
dxgi_device
);
return
hr
;
return
d3d11_device_SetPrivateDataInterface
(
&
device
->
ID3D11Device_iface
,
guid
,
data
);
}
static
void
STDMETHODCALLTYPE
d3d10_device_ClearState
(
ID3D10Device1
*
iface
)
...
...
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