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
3a6050b6
Commit
3a6050b6
authored
Aug 25, 2010
by
Matteo Bruni
Committed by
Alexandre Julliard
Aug 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Forward D3DXCompileShader to d3dcompiler.
parent
390b4803
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
shader.c
dlls/d3dx9_36/shader.c
+9
-9
No files found.
dlls/d3dx9_36/shader.c
View file @
3a6050b6
...
...
@@ -25,6 +25,7 @@
#include "wingdi.h"
#include "objbase.h"
#include "d3dcommon.h"
#include "d3dcompiler.h"
#include "d3dx9_36_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
d3dx
);
...
...
@@ -371,16 +372,15 @@ HRESULT WINAPI D3DXCompileShader(LPCSTR pSrcData,
LPD3DXBUFFER
*
ppErrorMsgs
,
LPD3DXCONSTANTTABLE
*
ppConstantTable
)
{
FIXME
(
"(%p, %d, %p, %p, %s, %s, %x, %p, %p, %p): stub
\n
"
,
pSrcData
,
srcDataLen
,
pDefines
,
pInclude
,
debugstr_a
(
pFunctionName
),
debugstr_a
(
pProfile
),
Flags
,
ppShader
,
ppErrorMsgs
,
ppConstantTable
);
HRESULT
hr
=
D3DCompile
(
pSrcData
,
srcDataLen
,
NULL
,
(
D3D_SHADER_MACRO
*
)
pDefines
,
(
ID3DInclude
*
)
pInclude
,
pFunctionName
,
pProfile
,
Flags
,
0
,
(
ID3DBlob
**
)
ppShader
,
(
ID3DBlob
**
)
ppErrorMsgs
);
TRACE
(
"Shader source:
\n
"
);
TRACE
(
"%s
\n
"
,
debugstr_an
(
pSrcData
,
srcDataLen
));
if
(
ppErrorMsgs
)
D3DXCreateBuffer
(
1
,
ppErrorMsgs
);
/* zero fill used as string end */
return
D3DERR_INVALIDCALL
;
if
(
SUCCEEDED
(
hr
)
&&
ppConstantTable
)
return
D3DXGetShaderConstantTable
(
ID3DXBuffer_GetBufferPointer
(
*
ppShader
),
ppConstantTable
);
return
hr
;
}
static
const
struct
ID3DXConstantTableVtbl
ID3DXConstantTable_Vtbl
;
...
...
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