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
525dee07
Commit
525dee07
authored
Mar 03, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Mar 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Add debug helper for shader variable class.
parent
e71a2350
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
d3dcompiler_private.h
dlls/d3dcompiler_43/d3dcompiler_private.h
+1
-0
reflection.c
dlls/d3dcompiler_43/reflection.c
+1
-1
utils.c
dlls/d3dcompiler_43/utils.c
+18
-0
No files found.
dlls/d3dcompiler_43/d3dcompiler_private.h
View file @
525dee07
...
...
@@ -41,6 +41,7 @@
/* TRACE helper functions */
const
char
*
debug_d3dcompiler_d3d_blob_part
(
D3D_BLOB_PART
part
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3dcompiler_shader_variable_class
(
D3D_SHADER_VARIABLE_CLASS
c
)
DECLSPEC_HIDDEN
;
/* ID3DBlob */
struct
d3dcompiler_blob
...
...
dlls/d3dcompiler_43/reflection.c
View file @
525dee07
...
...
@@ -1212,7 +1212,7 @@ static HRESULT d3dcompiler_parse_type(struct d3dcompiler_shader_reflection_type
read_dword
(
&
ptr
,
&
temp
);
desc
->
Class
=
temp
&
0xffff
;
desc
->
Type
=
temp
>>
16
;
TRACE
(
"Class %
x, Type %x
\n
"
,
desc
->
Class
,
desc
->
Type
);
TRACE
(
"Class %
s, Type %x
\n
"
,
debug_d3dcompiler_shader_variable_class
(
desc
->
Class
)
,
desc
->
Type
);
read_dword
(
&
ptr
,
&
temp
);
desc
->
Rows
=
temp
&
0xffff
;
...
...
dlls/d3dcompiler_43/utils.c
View file @
525dee07
...
...
@@ -29,6 +29,24 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3dcompiler);
#define WINE_D3DCOMPILER_TO_STR(x) case x: return #x
const
char
*
debug_d3dcompiler_shader_variable_class
(
D3D_SHADER_VARIABLE_CLASS
c
)
{
switch
(
c
)
{
WINE_D3DCOMPILER_TO_STR
(
D3D_SVC_SCALAR
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVC_VECTOR
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVC_MATRIX_ROWS
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVC_MATRIX_COLUMNS
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVC_OBJECT
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVC_STRUCT
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVC_INTERFACE_CLASS
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVC_INTERFACE_POINTER
);
default:
FIXME
(
"Unrecognized D3D_SHADER_VARIABLE_CLASS %#x.
\n
"
,
c
);
return
"unrecognized"
;
}
}
const
char
*
debug_d3dcompiler_d3d_blob_part
(
D3D_BLOB_PART
part
)
{
switch
(
part
)
...
...
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