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
5eb46419
Commit
5eb46419
authored
Feb 25, 2024
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 05, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10_1/tests: Add an effect compilation test using 10.1 features.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
0a9ad614
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
d3d10_1.c
dlls/d3d10_1/tests/d3d10_1.c
+25
-0
No files found.
dlls/d3d10_1/tests/d3d10_1.c
View file @
5eb46419
...
...
@@ -1053,6 +1053,30 @@ static void test_shader_profiles(void)
ok
(
!
strcmp
(
profile
,
"ps_4_0"
),
"Unexpected profile %s.
\n
"
,
profile
);
}
static
void
test_compile_effect
(
void
)
{
char
default_bs_source
[]
=
"BlendState default_blend_state {};"
;
char
bs_source2
[]
=
"BlendState blend_state
\n
"
"{
\n
"
" srcblend[0] = zero;
\n
"
"};"
;
ID3D10Blob
*
blob
;
HRESULT
hr
;
hr
=
D3D10CompileEffectFromMemory
(
default_bs_source
,
strlen
(
default_bs_source
),
NULL
,
NULL
,
NULL
,
0
,
0
,
&
blob
,
NULL
);
todo_wine
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
ID3D10Blob_Release
(
blob
);
/* Compilation fails due to 10.1 feature incompatibility with fx_4_0 profile. */
hr
=
D3D10CompileEffectFromMemory
(
bs_source2
,
strlen
(
bs_source2
),
NULL
,
NULL
,
NULL
,
0
,
0
,
&
blob
,
NULL
);
ok
(
hr
==
E_FAIL
,
"Unexpected hr %#lx.
\n
"
,
hr
);
}
START_TEST
(
d3d10_1
)
{
test_create_device
();
...
...
@@ -1062,4 +1086,5 @@ START_TEST(d3d10_1)
test_getdc
();
test_fx_4_1_blend_state
();
test_shader_profiles
();
test_compile_effect
();
}
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