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
b6b9c156
Commit
b6b9c156
authored
Sep 12, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Implement d3d10_shader_resource_view_GetResource().
parent
32d1bb2b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
d3d10core_private.h
dlls/d3d10core/d3d10core_private.h
+4
-1
device.c
dlls/d3d10core/device.c
+1
-2
view.c
dlls/d3d10core/view.c
+12
-2
No files found.
dlls/d3d10core/d3d10core_private.h
View file @
b6b9c156
...
...
@@ -155,9 +155,12 @@ struct d3d10_shader_resource_view
{
ID3D10ShaderResourceView
ID3D10ShaderResourceView_iface
;
LONG
refcount
;
ID3D10Resource
*
resource
;
};
HRESULT
d3d10_shader_resource_view_init
(
struct
d3d10_shader_resource_view
*
view
)
DECLSPEC_HIDDEN
;
HRESULT
d3d10_shader_resource_view_init
(
struct
d3d10_shader_resource_view
*
view
,
ID3D10Resource
*
resource
)
DECLSPEC_HIDDEN
;
/* ID3D10InputLayout */
struct
d3d10_input_layout
...
...
dlls/d3d10core/device.c
View file @
b6b9c156
...
...
@@ -746,8 +746,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateShaderResourceView(ID3D10Dev
return
E_OUTOFMEMORY
;
}
hr
=
d3d10_shader_resource_view_init
(
object
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
=
d3d10_shader_resource_view_init
(
object
,
resource
)))
{
WARN
(
"Failed to initialize shader resource view, hr %#x.
\n
"
,
hr
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
...
...
dlls/d3d10core/view.c
View file @
b6b9c156
...
...
@@ -526,6 +526,7 @@ static ULONG STDMETHODCALLTYPE d3d10_shader_resource_view_Release(ID3D10ShaderRe
if
(
!
refcount
)
{
ID3D10Resource_Release
(
This
->
resource
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -571,7 +572,12 @@ static HRESULT STDMETHODCALLTYPE d3d10_shader_resource_view_SetPrivateDataInterf
static
void
STDMETHODCALLTYPE
d3d10_shader_resource_view_GetResource
(
ID3D10ShaderResourceView
*
iface
,
ID3D10Resource
**
resource
)
{
FIXME
(
"iface %p, resource %p stub!
\n
"
,
iface
,
resource
);
struct
d3d10_shader_resource_view
*
view
=
impl_from_ID3D10ShaderResourceView
(
iface
);
TRACE
(
"iface %p, resource %p.
\n
"
,
iface
,
resource
);
*
resource
=
view
->
resource
;
ID3D10Resource_AddRef
(
*
resource
);
}
/* ID3D10ShaderResourceView methods */
...
...
@@ -599,10 +605,14 @@ static const struct ID3D10ShaderResourceViewVtbl d3d10_shader_resource_view_vtbl
d3d10_shader_resource_view_GetDesc
,
};
HRESULT
d3d10_shader_resource_view_init
(
struct
d3d10_shader_resource_view
*
view
)
HRESULT
d3d10_shader_resource_view_init
(
struct
d3d10_shader_resource_view
*
view
,
ID3D10Resource
*
resource
)
{
view
->
ID3D10ShaderResourceView_iface
.
lpVtbl
=
&
d3d10_shader_resource_view_vtbl
;
view
->
refcount
=
1
;
view
->
resource
=
resource
;
ID3D10Resource_AddRef
(
resource
);
return
S_OK
;
}
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