Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fea0b7dc
Commit
fea0b7dc
authored
Aug 14, 2012
by
Józef Kucia
Committed by
Alexandre Julliard
Aug 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implement ID3DXConstantTable::SetDefaults.
parent
711ee8a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
shader.c
dlls/d3dx9_36/shader.c
+16
-2
No files found.
dlls/d3dx9_36/shader.c
View file @
fea0b7dc
...
...
@@ -905,10 +905,24 @@ static HRESULT set_float_array(ID3DXConstantTable *iface, LPDIRECT3DDEVICE9 devi
static
HRESULT
WINAPI
ID3DXConstantTableImpl_SetDefaults
(
ID3DXConstantTable
*
iface
,
LPDIRECT3DDEVICE9
device
)
{
struct
ID3DXConstantTableImpl
*
This
=
impl_from_ID3DXConstantTable
(
iface
);
UINT
i
;
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
device
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
device
);
return
E_NOTIMPL
;
if
(
!
device
)
return
D3DERR_INVALIDCALL
;
for
(
i
=
0
;
i
<
This
->
desc
.
Constants
;
i
++
)
{
D3DXCONSTANT_DESC
*
desc
=
&
This
->
constants
[
i
].
desc
;
if
(
!
desc
->
DefaultValue
)
continue
;
set_float_shader_constant
(
This
,
device
,
desc
->
RegisterIndex
,
desc
->
DefaultValue
,
desc
->
RegisterCount
);
}
return
D3D_OK
;
}
static
HRESULT
WINAPI
ID3DXConstantTableImpl_SetValue
(
ID3DXConstantTable
*
iface
,
LPDIRECT3DDEVICE9
device
,
...
...
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