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
c31121dd
Commit
c31121dd
authored
Sep 15, 2009
by
Matteo Bruni
Committed by
Alexandre Julliard
Oct 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: D3DXAssembleShader and D3DXAssembleShaderFromFile stubs.
parent
3cd744e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
3 deletions
+51
-3
d3dx9_36.spec
dlls/d3dx9_36/d3dx9_36.spec
+3
-3
shader.c
dlls/d3dx9_36/shader.c
+48
-0
No files found.
dlls/d3dx9_36/d3dx9_36.spec
View file @
c31121dd
@ st
ub D3DXAssembleShader
@ st
ub D3DXAssembleShaderFromFileA
@ st
ub D3DXAssembleShaderFromFileW
@ st
dcall D3DXAssembleShader(ptr long ptr ptr long ptr ptr)
@ st
dcall D3DXAssembleShaderFromFileA(str ptr ptr long ptr ptr)
@ st
dcall D3DXAssembleShaderFromFileW(wstr ptr ptr long ptr ptr)
@ stub D3DXAssembleShaderFromResourceA
@ stub D3DXAssembleShaderFromResourceW
@ stdcall D3DXBoxBoundProbe(ptr ptr ptr ptr)
...
...
dlls/d3dx9_36/shader.c
View file @
c31121dd
...
...
@@ -19,6 +19,7 @@
#include "config.h"
#include "wine/port.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "windef.h"
#include "wingdi.h"
#include "d3dx9.h"
...
...
@@ -131,3 +132,50 @@ LPCSTR WINAPI D3DXGetVertexShaderProfile(LPDIRECT3DDEVICE9 device)
return
NULL
;
}
HRESULT
WINAPI
D3DXAssembleShader
(
LPCSTR
data
,
UINT
data_len
,
CONST
D3DXMACRO
*
defines
,
LPD3DXINCLUDE
include
,
DWORD
flags
,
LPD3DXBUFFER
*
shader
,
LPD3DXBUFFER
*
error_messages
)
{
FIXME
(
"stub
\n
"
);
return
D3DERR_INVALIDCALL
;
}
HRESULT
WINAPI
D3DXAssembleShaderFromFileA
(
LPCSTR
filename
,
CONST
D3DXMACRO
*
defines
,
LPD3DXINCLUDE
include
,
DWORD
flags
,
LPD3DXBUFFER
*
shader
,
LPD3DXBUFFER
*
error_messages
)
{
LPWSTR
filename_w
=
NULL
;
DWORD
len
;
HRESULT
ret
;
if
(
!
filename
)
return
D3DXERR_INVALIDDATA
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
filename
,
-
1
,
NULL
,
0
);
filename_w
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
if
(
!
filename_w
)
return
E_OUTOFMEMORY
;
MultiByteToWideChar
(
CP_ACP
,
0
,
filename
,
-
1
,
filename_w
,
len
);
ret
=
D3DXAssembleShaderFromFileW
(
filename_w
,
defines
,
include
,
flags
,
shader
,
error_messages
);
HeapFree
(
GetProcessHeap
(),
0
,
filename_w
);
return
ret
;
}
HRESULT
WINAPI
D3DXAssembleShaderFromFileW
(
LPCWSTR
filename
,
CONST
D3DXMACRO
*
defines
,
LPD3DXINCLUDE
include
,
DWORD
flags
,
LPD3DXBUFFER
*
shader
,
LPD3DXBUFFER
*
error_messages
)
{
FIXME
(
"stub
\n
"
);
return
D3DERR_INVALIDCALL
;
}
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