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
629e8538
Commit
629e8538
authored
Jan 26, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler_43/tests: COM cleanup for the ID3DInclude iface.
parent
134cb5bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
asm.c
dlls/d3dcompiler_43/tests/asm.c
+10
-10
No files found.
dlls/d3dcompiler_43/tests/asm.c
View file @
629e8538
...
...
@@ -16,6 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define COBJMACROS
#define CONST_VTABLE
#include "wine/test.h"
#include <d3d9types.h>
...
...
@@ -1480,7 +1481,7 @@ static const struct ID3DIncludeVtbl D3DInclude_Vtbl =
};
struct
D3DIncludeImpl
{
const
ID3DIncludeVtbl
*
lpVtbl
;
ID3DInclude
ID3DInclude_iface
;
};
static
void
assembleshader_test
(
void
)
{
...
...
@@ -1542,10 +1543,9 @@ static void assembleshader_test(void) {
/* D3DInclude test */
shader
=
NULL
;
messages
=
NULL
;
include
.
lpVtbl
=
&
D3DInclude_Vtbl
;
hr
=
D3DAssemble
(
testshader
,
strlen
(
testshader
),
NULL
,
NULL
,
(
LPD3DINCLUDE
)
&
include
,
D3DCOMPILE_SKIP_VALIDATION
,
&
shader
,
&
messages
);
include
.
ID3DInclude_iface
.
lpVtbl
=
&
D3DInclude_Vtbl
;
hr
=
D3DAssemble
(
testshader
,
strlen
(
testshader
),
NULL
,
NULL
,
&
include
.
ID3DInclude_iface
,
D3DCOMPILE_SKIP_VALIDATION
,
&
shader
,
&
messages
);
ok
(
hr
==
S_OK
,
"D3DInclude test failed with error 0x%x - %d
\n
"
,
hr
,
hr
&
0x0000FFFF
);
if
(
messages
)
{
trace
(
"D3DAssemble messages:
\n
%s"
,
(
char
*
)
ID3D10Blob_GetBufferPointer
(
messages
));
...
...
@@ -1634,9 +1634,9 @@ static void d3dpreprocess_test(void)
/* pInclude test */
shader
=
NULL
;
messages
=
NULL
;
include
.
lpVtbl
=
&
D3DInclude_Vtbl
;
hr
=
D3DPreprocess
(
testshader
,
strlen
(
testshader
),
NULL
,
NULL
,
(
ID3DInclude
*
)
&
include
,
&
shader
,
&
messages
);
include
.
ID3DInclude_iface
.
lpVtbl
=
&
D3DInclude_Vtbl
;
hr
=
D3DPreprocess
(
testshader
,
strlen
(
testshader
),
NULL
,
NULL
,
&
include
.
ID3DInclude_iface
,
&
shader
,
&
messages
);
ok
(
hr
==
S_OK
,
"pInclude test failed with error 0x%x - %d
\n
"
,
hr
,
hr
&
0x0000FFFF
);
if
(
messages
)
{
...
...
@@ -1648,8 +1648,8 @@ static void d3dpreprocess_test(void)
/* recursive #include test */
shader
=
NULL
;
messages
=
NULL
;
hr
=
D3DPreprocess
(
testshader2
,
strlen
(
testshader2
),
NULL
,
NULL
,
(
ID3DInclude
*
)
&
include
,
&
shader
,
&
messages
);
hr
=
D3DPreprocess
(
testshader2
,
strlen
(
testshader2
),
NULL
,
NULL
,
&
include
.
ID3DInclude_iface
,
&
shader
,
&
messages
);
ok
(
hr
==
S_OK
,
"D3DPreprocess test failed with error 0x%x - %d
\n
"
,
hr
,
hr
&
0x0000FFFF
);
if
(
messages
)
{
...
...
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