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
beb2cad0
Commit
beb2cad0
authored
Oct 14, 2010
by
Rico Schüller
Committed by
Alexandre Julliard
Oct 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler/tests: Add D3D_BLOB_XNA_SHADER test.
parent
b09da75f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
blob.c
dlls/d3dcompiler_43/tests/blob.c
+24
-0
No files found.
dlls/d3dcompiler_43/tests/blob.c
View file @
beb2cad0
...
...
@@ -299,6 +299,26 @@ static void test_get_blob_part(void)
refcount
=
ID3D10Blob_Release
(
blob
);
ok
(
!
refcount
,
"ID3DBlob has %u references left
\n
"
,
refcount
);
/* D3D_BLOB_XNA_SHADER */
hr
=
D3DGetBlobPart
(
test_blob_part
,
test_blob_part
[
6
],
D3D_BLOB_XNA_SHADER
,
0
,
&
blob
);
ok
(
hr
==
S_OK
,
"D3DGetBlobPart failed, got %x, expected %x
\n
"
,
hr
,
S_OK
);
size
=
ID3D10Blob_GetBufferSize
(
blob
);
ok
(
size
==
68
,
"GetBufferSize failed, got %lu, expected %u
\n
"
,
size
,
68
);
dword
=
((
DWORD
*
)
ID3D10Blob_GetBufferPointer
(
blob
));
ok
(
test_blob_part
[
0
]
!=
*
dword
,
"DXBC failed got %#x.
\n
"
,
*
dword
);
for
(
i
=
0
;
i
<
sizeof
(
parts
)
/
sizeof
(
parts
[
0
]);
i
++
)
{
/* There isn't a full DXBC blob returned for D3D_BLOB_XNA_SHADER */
hr
=
D3DGetBlobPart
(
dword
,
size
,
parts
[
i
],
0
,
&
blob2
);
ok
(
hr
==
E_FAIL
,
"D3DGetBlobPart failed, got %x, expected %x
\n
"
,
hr
,
E_FAIL
);
}
refcount
=
ID3D10Blob_Release
(
blob
);
ok
(
!
refcount
,
"ID3DBlob has %u references left
\n
"
,
refcount
);
}
/*
...
...
@@ -591,6 +611,10 @@ static void test_get_blob_part2(void)
/* D3D_BLOB_XNA_PREPASS_SHADER */
hr
=
D3DGetBlobPart
(
test_blob_part2
,
test_blob_part2
[
6
],
D3D_BLOB_XNA_PREPASS_SHADER
,
0
,
&
blob
);
ok
(
hr
==
E_FAIL
,
"D3DGetBlobPart failed, got %x, expected %x
\n
"
,
hr
,
E_FAIL
);
/* D3D_BLOB_XNA_SHADER */
hr
=
D3DGetBlobPart
(
test_blob_part2
,
test_blob_part2
[
6
],
D3D_BLOB_XNA_SHADER
,
0
,
&
blob
);
ok
(
hr
==
E_FAIL
,
"D3DGetBlobPart failed, got %x, expected %x
\n
"
,
hr
,
E_FAIL
);
}
START_TEST
(
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