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
4080242d
Commit
4080242d
authored
Mar 01, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Mar 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Implement ID3D11ShaderReflectionType::IsEqual().
parent
66b28647
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
2 deletions
+42
-2
reflection.c
dlls/d3dcompiler_43/reflection.c
+13
-2
reflection.c
dlls/d3dcompiler_43/tests/reflection.c
+29
-0
No files found.
dlls/d3dcompiler_43/reflection.c
View file @
4080242d
...
...
@@ -872,9 +872,20 @@ static LPCSTR STDMETHODCALLTYPE d3dcompiler_shader_reflection_type_GetMemberType
static
HRESULT
STDMETHODCALLTYPE
d3dcompiler_shader_reflection_type_IsEqual
(
ID3D11ShaderReflectionType
*
iface
,
ID3D11ShaderReflectionType
*
type
)
{
FIXME
(
"iface %p, type %p stub!
\n
"
,
iface
,
typ
e
);
struct
d3dcompiler_shader_reflection_type
*
This
=
impl_from_ID3D11ShaderReflectionType
(
ifac
e
);
return
E_NOTIMPL
;
TRACE
(
"iface %p, type %p
\n
"
,
iface
,
type
);
if
(
This
==
&
null_type
)
{
WARN
(
"Null type specified
\n
"
);
return
E_FAIL
;
}
if
(
iface
==
type
)
return
S_OK
;
return
S_FALSE
;
}
static
ID3D11ShaderReflectionType
*
STDMETHODCALLTYPE
d3dcompiler_shader_reflection_type_GetSubType
(
...
...
dlls/d3dcompiler_43/tests/reflection.c
View file @
4080242d
...
...
@@ -1380,6 +1380,18 @@ static void test_reflection_constant_buffer(void)
t11
=
t11_valid
->
lpVtbl
->
GetMemberTypeByName
(
t11_valid
,
"invalid"
);
ok
(
t11_dummy
==
t11
,
"GetMemberTypeByName failed, got %p, expected %p
\n
"
,
t11
,
t11_dummy
);
hr
=
t11_dummy
->
lpVtbl
->
IsEqual
(
t11_dummy
,
t11_dummy
);
ok
(
hr
==
E_FAIL
,
"IsEqual failed, got %x, expected %x
\n
"
,
hr
,
E_FAIL
);
hr
=
t11_valid
->
lpVtbl
->
IsEqual
(
t11_valid
,
t11_dummy
);
ok
(
hr
==
S_FALSE
,
"IsEqual failed, got %x, expected %x
\n
"
,
hr
,
S_FALSE
);
hr
=
t11_dummy
->
lpVtbl
->
IsEqual
(
t11_dummy
,
t11_valid
);
ok
(
hr
==
E_FAIL
,
"IsEqual failed, got %x, expected %x
\n
"
,
hr
,
E_FAIL
);
hr
=
t11_valid
->
lpVtbl
->
IsEqual
(
t11_valid
,
t11_valid
);
ok
(
hr
==
S_OK
,
"IsEqual failed, got %x, expected %x
\n
"
,
hr
,
S_OK
);
/* constant buffers */
for
(
i
=
0
;
i
<
sizeof
(
test_reflection_constant_buffer_cb_result
)
/
sizeof
(
*
test_reflection_constant_buffer_cb_result
);
++
i
)
{
...
...
@@ -1472,6 +1484,23 @@ static void test_reflection_constant_buffer(void)
string
=
t11
->
lpVtbl
->
GetMemberTypeName
(
t11
,
1
);
ok
(
!
strcmp
(
string
,
"b"
),
"GetMemberTypeName failed, got
\"
%s
\"
, expected
\"
%s
\"\n
"
,
string
,
"b"
);
/* float vs float (in struct) */
hr
=
t11
->
lpVtbl
->
IsEqual
(
t11
,
t11_valid
);
ok
(
hr
==
S_FALSE
,
"IsEqual failed, got %x, expected %x
\n
"
,
hr
,
S_FALSE
);
hr
=
t11_valid
->
lpVtbl
->
IsEqual
(
t11_valid
,
t11
);
ok
(
hr
==
S_FALSE
,
"IsEqual failed, got %x, expected %x
\n
"
,
hr
,
S_FALSE
);
/* float vs float */
t
=
t11
->
lpVtbl
->
GetMemberTypeByIndex
(
t11
,
0
);
ok
(
t
!=
t11_dummy
,
"GetMemberTypeByIndex failed
\n
"
);
t2
=
t11
->
lpVtbl
->
GetMemberTypeByIndex
(
t11
,
1
);
ok
(
t2
!=
t11_dummy
,
"GetMemberTypeByIndex failed
\n
"
);
hr
=
t
->
lpVtbl
->
IsEqual
(
t
,
t2
);
ok
(
hr
==
S_OK
,
"IsEqual failed, got %x, expected %x
\n
"
,
hr
,
S_OK
);
count
=
ref11
->
lpVtbl
->
Release
(
ref11
);
ok
(
count
==
0
,
"Release failed %u
\n
"
,
count
);
}
...
...
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