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
8f08d385
Commit
8f08d385
authored
Dec 21, 2010
by
Rico Schüller
Committed by
Alexandre Julliard
Dec 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Use an iface instead of a vtbl pointer in d3dcompiler_shader_reflection.
parent
806961ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
d3dcompiler_private.h
dlls/d3dcompiler_43/d3dcompiler_private.h
+1
-1
reflection.c
dlls/d3dcompiler_43/reflection.c
+8
-3
No files found.
dlls/d3dcompiler_43/d3dcompiler_private.h
View file @
8f08d385
...
...
@@ -60,7 +60,7 @@ HRESULT d3dcompiler_strip_shader(const void *data, SIZE_T data_size, UINT flags,
/* ID3D11ShaderReflection */
struct
d3dcompiler_shader_reflection
{
const
struct
ID3D11ShaderReflectionVtbl
*
vtbl
;
ID3D11ShaderReflection
ID3D11ShaderReflection_iface
;
LONG
refcount
;
};
...
...
dlls/d3dcompiler_43/reflection.c
View file @
8f08d385
...
...
@@ -25,6 +25,11 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3dcompiler
);
static
inline
struct
d3dcompiler_shader_reflection
*
impl_from_ID3D11ShaderReflection
(
ID3D11ShaderReflection
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3dcompiler_shader_reflection
,
ID3D11ShaderReflection_iface
);
}
/* IUnknown methods */
static
HRESULT
STDMETHODCALLTYPE
d3dcompiler_shader_reflection_QueryInterface
(
ID3D11ShaderReflection
*
iface
,
REFIID
riid
,
void
**
object
)
...
...
@@ -47,7 +52,7 @@ static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_QueryInterface(ID
static
ULONG
STDMETHODCALLTYPE
d3dcompiler_shader_reflection_AddRef
(
ID3D11ShaderReflection
*
iface
)
{
struct
d3dcompiler_shader_reflection
*
This
=
(
struct
d3dcompiler_shader_reflection
*
)
iface
;
struct
d3dcompiler_shader_reflection
*
This
=
impl_from_ID3D11ShaderReflection
(
iface
)
;
ULONG
refcount
=
InterlockedIncrement
(
&
This
->
refcount
);
TRACE
(
"%p increasing refcount to %u
\n
"
,
This
,
refcount
);
...
...
@@ -57,7 +62,7 @@ static ULONG STDMETHODCALLTYPE d3dcompiler_shader_reflection_AddRef(ID3D11Shader
static
ULONG
STDMETHODCALLTYPE
d3dcompiler_shader_reflection_Release
(
ID3D11ShaderReflection
*
iface
)
{
struct
d3dcompiler_shader_reflection
*
This
=
(
struct
d3dcompiler_shader_reflection
*
)
iface
;
struct
d3dcompiler_shader_reflection
*
This
=
impl_from_ID3D11ShaderReflection
(
iface
)
;
ULONG
refcount
=
InterlockedDecrement
(
&
This
->
refcount
);
TRACE
(
"%p decreasing refcount to %u
\n
"
,
This
,
refcount
);
...
...
@@ -249,7 +254,7 @@ HRESULT d3dcompiler_shader_reflection_init(struct d3dcompiler_shader_reflection
HRESULT
hr
;
unsigned
int
i
;
reflection
->
v
tbl
=
&
d3dcompiler_shader_reflection_vtbl
;
reflection
->
ID3D11ShaderReflection_iface
.
lpV
tbl
=
&
d3dcompiler_shader_reflection_vtbl
;
reflection
->
refcount
=
1
;
hr
=
dxbc_parse
(
data
,
data_size
,
&
src_dxbc
);
...
...
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