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
a119f266
Commit
a119f266
authored
Jul 22, 2013
by
Christian Costa
Committed by
Alexandre Julliard
Jul 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36: Add trace to D3DAssembleShader and D3DCompileShader.
parent
582945fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
13 deletions
+21
-13
shader.c
dlls/d3dx9_36/shader.c
+21
-13
No files found.
dlls/d3dx9_36/shader.c
View file @
a119f266
...
...
@@ -193,11 +193,16 @@ HRESULT WINAPI D3DXFindShaderComment(const DWORD *byte_code, DWORD fourcc, const
HRESULT
WINAPI
D3DXAssembleShader
(
const
char
*
data
,
UINT
data_len
,
const
D3DXMACRO
*
defines
,
ID3DXInclude
*
include
,
DWORD
flags
,
ID3DXBuffer
**
shader
,
ID3DXBuffer
**
error_messages
)
{
HRESULT
hr
;
TRACE
(
"data %p, data_len %u, defines %p, include %p, flags %#x, shader %p, error_messages %p
\n
"
,
data
,
data_len
,
defines
,
include
,
flags
,
shader
,
error_messages
);
/* Forward to d3dcompiler: the parameter types aren't really different,
the actual data types are equivalent */
HRESULT
hr
=
D3DAssemble
(
data
,
data_len
,
NULL
,
(
D3D_SHADER_MACRO
*
)
defines
,
(
ID3DInclude
*
)
include
,
flags
,
(
ID3DBlob
**
)
shader
,
(
ID3DBlob
**
)
error_messages
);
hr
=
D3DAssemble
(
data
,
data_len
,
NULL
,
(
D3D_SHADER_MACRO
*
)
defines
,
(
ID3DInclude
*
)
include
,
flags
,
(
ID3DBlob
**
)
shader
,
(
ID3DBlob
**
)
error_messages
);
if
(
hr
==
E_FAIL
)
hr
=
D3DXERR_INVALIDDATA
;
return
hr
;
...
...
@@ -350,18 +355,21 @@ HRESULT WINAPI D3DXAssembleShaderFromResourceW(HMODULE module, const WCHAR *reso
shader
,
error_messages
);
}
HRESULT
WINAPI
D3DXCompileShader
(
const
char
*
pSrcData
,
UINT
srcDataLen
,
const
D3DXMACRO
*
pD
efines
,
ID3DXInclude
*
pInclude
,
const
char
*
pFunctionName
,
const
char
*
pProfile
,
DWORD
F
lags
,
ID3DXBuffer
**
ppShader
,
ID3DXBuffer
**
ppErrorMsgs
,
ID3DXConstantTable
**
ppConstantT
able
)
HRESULT
WINAPI
D3DXCompileShader
(
const
char
*
data
,
UINT
length
,
const
D3DXMACRO
*
d
efines
,
ID3DXInclude
*
include
,
const
char
*
function
,
const
char
*
profile
,
DWORD
f
lags
,
ID3DXBuffer
**
shader
,
ID3DXBuffer
**
error_msgs
,
ID3DXConstantTable
**
constant_t
able
)
{
HRESULT
hr
=
D3DCompile
(
pSrcData
,
srcDataLen
,
NULL
,
(
D3D_SHADER_MACRO
*
)
pDefines
,
(
ID3DInclude
*
)
pInclude
,
pFunctionName
,
pProfile
,
Flags
,
0
,
(
ID3DBlob
**
)
ppShader
,
(
ID3DBlob
**
)
ppErrorMsgs
);
HRESULT
hr
;
TRACE
(
"data %p, length %u, defines %p, include %p, function %s, profile %s, flags %#x, shader %p, error_msgs %p, constant_table %p
\n
"
,
data
,
length
,
defines
,
include
,
function
,
profile
,
flags
,
shader
,
error_msgs
,
constant_table
);
hr
=
D3DCompile
(
data
,
length
,
NULL
,
(
D3D_SHADER_MACRO
*
)
defines
,
(
ID3DInclude
*
)
include
,
function
,
profile
,
flags
,
0
,
(
ID3DBlob
**
)
shader
,
(
ID3DBlob
**
)
error_msgs
);
if
(
SUCCEEDED
(
hr
)
&&
constant_table
)
hr
=
D3DXGetShaderConstantTable
(
ID3DXBuffer_GetBufferPointer
(
*
shader
),
constant_table
);
if
(
SUCCEEDED
(
hr
)
&&
ppConstantTable
)
return
D3DXGetShaderConstantTable
(
ID3DXBuffer_GetBufferPointer
(
*
ppShader
),
ppConstantTable
);
return
hr
;
}
...
...
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