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
be712203
Commit
be712203
authored
Nov 15, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Implement D3D10StateBlockMaskEnableAll().
parent
5ffa2aba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
1 deletion
+22
-1
d3d10.spec
dlls/d3d10/d3d10.spec
+1
-1
stateblock.c
dlls/d3d10/stateblock.c
+12
-0
device.c
dlls/d3d10/tests/device.c
+8
-0
d3d10effect.h
include/d3d10effect.h
+1
-0
No files found.
dlls/d3d10/d3d10.spec
View file @
be712203
...
...
@@ -22,7 +22,7 @@
@ stdcall D3D10StateBlockMaskDifference(ptr ptr ptr)
@ stdcall D3D10StateBlockMaskDisableAll(ptr)
@ stdcall D3D10StateBlockMaskDisableCapture(ptr long long long)
@ st
ub D3D10StateBlockMaskEnableAll
@ st
dcall D3D10StateBlockMaskEnableAll(ptr)
@ stub D3D10StateBlockMaskEnableCapture
@ stub D3D10StateBlockMaskGetSetting
@ stub D3D10StateBlockMaskIntersect
...
...
dlls/d3d10/stateblock.c
View file @
be712203
...
...
@@ -284,3 +284,15 @@ HRESULT WINAPI D3D10StateBlockMaskDisableCapture(D3D10_STATE_BLOCK_MASK *mask,
return
E_INVALIDARG
;
}
}
HRESULT
WINAPI
D3D10StateBlockMaskEnableAll
(
D3D10_STATE_BLOCK_MASK
*
mask
)
{
TRACE
(
"mask %p.
\n
"
,
mask
);
if
(
!
mask
)
return
E_INVALIDARG
;
memset
(
mask
,
0xff
,
sizeof
(
*
mask
));
return
S_OK
;
}
dlls/d3d10/tests/device.c
View file @
be712203
...
...
@@ -123,6 +123,14 @@ static void test_stateblock_mask(void)
hr
=
D3D10StateBlockMaskDisableAll
(
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"Got unexpect hr %#x.
\n
"
,
hr
);
memset
(
&
result
,
0
,
sizeof
(
result
));
hr
=
D3D10StateBlockMaskEnableAll
(
&
result
);
ok
(
SUCCEEDED
(
hr
),
"D3D10StateBlockMaskEnableAll failed, hr %#x.
\n
"
,
hr
);
ok
(
result
.
VS
==
0xff
,
"Got unexpected result.VS %#x.
\n
"
,
result
.
VS
);
ok
(
result
.
Predication
==
0xff
,
"Got unexpected result.Predication %#x.
\n
"
,
result
.
Predication
);
hr
=
D3D10StateBlockMaskEnableAll
(
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"Got unexpect hr %#x.
\n
"
,
hr
);
result
.
VS
=
0xff
;
hr
=
D3D10StateBlockMaskDisableCapture
(
&
result
,
D3D10_DST_VS
,
0
,
1
);
ok
(
SUCCEEDED
(
hr
),
"D3D10StateBlockMaskDisableCapture failed, hr %#x.
\n
"
,
hr
);
...
...
include/d3d10effect.h
View file @
be712203
...
...
@@ -837,6 +837,7 @@ HRESULT WINAPI D3D10StateBlockMaskDifference(D3D10_STATE_BLOCK_MASK *mask_x,
HRESULT
WINAPI
D3D10StateBlockMaskDisableAll
(
D3D10_STATE_BLOCK_MASK
*
mask
);
HRESULT
WINAPI
D3D10StateBlockMaskDisableCapture
(
D3D10_STATE_BLOCK_MASK
*
mask
,
D3D10_DEVICE_STATE_TYPES
state_type
,
UINT
start_idx
,
UINT
count
);
HRESULT
WINAPI
D3D10StateBlockMaskEnableAll
(
D3D10_STATE_BLOCK_MASK
*
mask
);
#ifdef __cplusplus
}
...
...
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