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
07cb7c66
Commit
07cb7c66
authored
Dec 05, 2007
by
Luis C. Busquets Pérez
Committed by
Alexandre Julliard
Dec 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx8: Implementation of D3DXAssembleShaderFromFileA.
parent
4714c4fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
d3dx8_main.c
dlls/d3dx8/d3dx8_main.c
+14
-5
d3dx8core.h
include/d3dx8core.h
+1
-1
No files found.
dlls/d3dx8/d3dx8_main.c
View file @
07cb7c66
...
...
@@ -29,11 +29,10 @@
#include "wingdi.h"
#include "winuser.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "d3dx8core.h"
#include "d3dx8core_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d
);
HRESULT
WINAPI
D3DXCreateBuffer
(
DWORD
NumBytes
,
LPD3DXBUFFER
*
ppBuffer
)
{
...
...
@@ -79,11 +78,21 @@ HRESULT WINAPI D3DXAssembleShaderFromFileA(LPSTR pSrcFile, DWORD Flags,
LPD3DXBUFFER
*
ppConstants
,
LPD3DXBUFFER
*
ppCompiledShader
,
LPD3DXBUFFER
*
ppCompilationErrors
)
{
FIXME
(
"(void): stub
\n
"
);
return
D3D_OK
;
LPWSTR
pSrcFileW
=
NULL
;
DWORD
len
;
HRESULT
ret
;
if
(
!
pSrcFile
)
return
D3DXERR_INVALIDDATA
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
pSrcFile
,
-
1
,
NULL
,
0
);
pSrcFileW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
pSrcFile
,
-
1
,
pSrcFileW
,
len
);
ret
=
D3DXAssembleShaderFromFileW
(
pSrcFileW
,
Flags
,
ppConstants
,
ppCompiledShader
,
ppCompilationErrors
);
HeapFree
(
GetProcessHeap
(),
0
,
pSrcFileW
);
return
ret
;
}
HRESULT
WINAPI
D3DXAssembleShaderFromFileW
(
LPSTR
pSrcFile
,
DWORD
Flags
,
HRESULT
WINAPI
D3DXAssembleShaderFromFileW
(
LP
W
STR
pSrcFile
,
DWORD
Flags
,
LPD3DXBUFFER
*
ppConstants
,
LPD3DXBUFFER
*
ppCompiledShader
,
LPD3DXBUFFER
*
ppCompilationErrors
)
{
...
...
include/d3dx8core.h
View file @
07cb7c66
...
...
@@ -120,7 +120,7 @@ HRESULT WINAPI D3DXAssembleShaderFromFileA(LPSTR pSrcFile, DWORD Flags,
LPD3DXBUFFER
*
ppConstants
,
LPD3DXBUFFER
*
ppCompiledShader
,
LPD3DXBUFFER
*
ppCompilationErrors
);
HRESULT
WINAPI
D3DXAssembleShaderFromFileW
(
LPSTR
pSrcFile
,
DWORD
Flags
,
HRESULT
WINAPI
D3DXAssembleShaderFromFileW
(
LP
W
STR
pSrcFile
,
DWORD
Flags
,
LPD3DXBUFFER
*
ppConstants
,
LPD3DXBUFFER
*
ppCompiledShader
,
LPD3DXBUFFER
*
ppCompilationErrors
);
...
...
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