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
d7a633a4
Commit
d7a633a4
authored
May 18, 2012
by
Józef Kucia
Committed by
Alexandre Julliard
May 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Add more tests for D3DXFilterTexture.
parent
480e4e5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
texture.c
dlls/d3dx9_36/tests/texture.c
+47
-0
No files found.
dlls/d3dx9_36/tests/texture.c
View file @
d7a633a4
...
...
@@ -797,6 +797,26 @@ static void test_D3DXFilterTexture(IDirect3DDevice9 *device)
else
skip
(
"Failed to create texture
\n
"
);
hr
=
IDirect3DDevice9_CreateTexture
(
device
,
256
,
256
,
0
,
0
,
D3DFMT_A8R8G8B8
,
D3DPOOL_DEFAULT
,
&
tex
,
NULL
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
D3DXFilterTexture
((
IDirect3DBaseTexture9
*
)
tex
,
NULL
,
0
,
D3DX_FILTER_POINT
);
ok
(
hr
==
D3D_OK
,
"D3DXFilterTexture returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
IDirect3DTexture9_Release
(
tex
);
}
else
skip
(
"Failed to create texture
\n
"
);
hr
=
IDirect3DDevice9_CreateTexture
(
device
,
256
,
256
,
0
,
D3DUSAGE_DYNAMIC
,
D3DFMT_A8R8G8B8
,
D3DPOOL_DEFAULT
,
&
tex
,
NULL
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
D3DXFilterTexture
((
IDirect3DBaseTexture9
*
)
tex
,
NULL
,
0
,
D3DX_FILTER_POINT
);
ok
(
hr
==
D3D_OK
,
"D3DXFilterTexture returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
IDirect3DTexture9_Release
(
tex
);
}
else
skip
(
"Failed to create texture
\n
"
);
/* Cube texture test */
hr
=
IDirect3DDevice9_CreateCubeTexture
(
device
,
256
,
5
,
0
,
D3DFMT_A8R8G8B8
,
D3DPOOL_MANAGED
,
&
cubetex
,
NULL
);
...
...
@@ -814,6 +834,33 @@ static void test_D3DXFilterTexture(IDirect3DDevice9 *device)
}
else
skip
(
"Failed to create texture
\n
"
);
/* Test textures with D3DUSAGE_AUTOGENMIPMAP usage */
if
(
!
is_autogenmipmap_supported
(
device
,
D3DRTYPE_TEXTURE
))
{
skip
(
"No D3DUSAGE_AUTOGENMIPMAP supported for textures
\n
"
);
return
;
}
hr
=
IDirect3DDevice9_CreateTexture
(
device
,
256
,
256
,
0
,
D3DUSAGE_DYNAMIC
|
D3DUSAGE_AUTOGENMIPMAP
,
D3DFMT_A8R8G8B8
,
D3DPOOL_DEFAULT
,
&
tex
,
NULL
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
D3DXFilterTexture
((
IDirect3DBaseTexture9
*
)
tex
,
NULL
,
0
,
D3DX_FILTER_NONE
);
ok
(
hr
==
D3D_OK
,
"D3dXFilteTexture returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
IDirect3DTexture9_Release
(
tex
);
}
else
skip
(
"Failed to create texture
\n
"
);
hr
=
IDirect3DDevice9_CreateTexture
(
device
,
256
,
256
,
1
,
D3DUSAGE_DYNAMIC
|
D3DUSAGE_AUTOGENMIPMAP
,
D3DFMT_A8R8G8B8
,
D3DPOOL_DEFAULT
,
&
tex
,
NULL
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
D3DXFilterTexture
((
IDirect3DBaseTexture9
*
)
tex
,
NULL
,
0
,
D3DX_FILTER_NONE
);
ok
(
hr
==
D3D_OK
,
"D3dXFilteTexture returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
IDirect3DTexture9_Release
(
tex
);
}
else
skip
(
"Failed to create texture
\n
"
);
}
static
BOOL
color_match
(
const
DWORD
*
value
,
const
DWORD
*
expected
)
...
...
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