Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
5ad7f7b9
Commit
5ad7f7b9
authored
Aug 19, 2010
by
Rico Schüller
Committed by
Alexandre Julliard
Aug 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Add D3DCreateBlob() test.
parent
12d14c69
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
0 deletions
+71
-0
configure
configure
+1
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/d3dcompiler_43/tests/Makefile.in
+11
-0
blob.c
dlls/d3dcompiler_43/tests/blob.c
+58
-0
No files found.
configure
View file @
5ad7f7b9
...
...
@@ -14464,6 +14464,7 @@ wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 d3dcompiler
wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
wine_fn_config_dll d3dim enable_d3dim d3dim
wine_fn_config_dll d3drm enable_d3drm d3drm
wine_fn_config_test dlls/d3drm/tests d3drm_test
...
...
configure.ac
View file @
5ad7f7b9
...
...
@@ -2303,6 +2303,7 @@ WINE_CONFIG_DLL(d3dcompiler_40)
WINE_CONFIG_DLL(d3dcompiler_41)
WINE_CONFIG_DLL(d3dcompiler_42)
WINE_CONFIG_DLL(d3dcompiler_43,,[d3dcompiler])
WINE_CONFIG_TEST(dlls/d3dcompiler_43/tests)
WINE_CONFIG_DLL(d3dim,,[d3dim])
WINE_CONFIG_DLL(d3drm,,[d3drm])
WINE_CONFIG_TEST(dlls/d3drm/tests)
...
...
dlls/d3dcompiler_43/tests/Makefile.in
0 → 100644
View file @
5ad7f7b9
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
d3dcompiler_43.dll
IMPORTS
=
d3dcompiler
C_SRCS
=
\
blob.c
@MAKE_TEST_RULES@
dlls/d3dcompiler_43/tests/blob.c
0 → 100644
View file @
5ad7f7b9
/*
* Copyright 2010 Rico Schüller
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
* Nearly all compiler functions need the shader blob and the size. The size
* is always located at DWORD #6 in the shader blob (blob[6]).
* The functions are e.g.: D3DGet*SignatureBlob, D3DReflect
*/
#define COBJMACROS
#include "d3dcompiler.h"
#include "wine/test.h"
/*
* This doesn't belong here, but for some functions it is possible to return that value,
* see http://msdn.microsoft.com/en-us/library/bb205278%28v=VS.85%29.aspx
* The original definition is in D3DX10core.h.
*/
#define D3DERR_INVALIDCALL 0x8876086c
static
void
test_create_blob
(
void
)
{
ID3D10Blob
*
blob
;
HRESULT
hr
;
ULONG
refcount
;
hr
=
D3DCreateBlob
(
1
,
NULL
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"D3DCreateBlob failed with %x
\n
"
,
hr
);
hr
=
D3DCreateBlob
(
0
,
NULL
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"D3DCreateBlob failed with %x
\n
"
,
hr
);
hr
=
D3DCreateBlob
(
0
,
&
blob
);
ok
(
hr
==
S_OK
,
"D3DCreateBlob failed with %x
\n
"
,
hr
);
refcount
=
blob
->
lpVtbl
->
Release
(
blob
);
ok
(
!
refcount
,
"ID3DBlob has %u references left
\n
"
,
refcount
);
}
START_TEST
(
blob
)
{
test_create_blob
();
}
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