Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ecc6a951
Commit
ecc6a951
authored
Sep 09, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Add a debug function for D3D10_SHADER_VARIABLE_TYPE.
parent
7f617f3d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
1 deletion
+41
-1
d3d10_private.h
dlls/d3d10/d3d10_private.h
+1
-0
effect.c
dlls/d3d10/effect.c
+1
-1
utils.c
dlls/d3d10/utils.c
+39
-0
No files found.
dlls/d3d10/d3d10_private.h
View file @
ecc6a951
...
...
@@ -32,6 +32,7 @@
/* TRACE helper functions */
const
char
*
debug_d3d10_driver_type
(
D3D10_DRIVER_TYPE
driver_type
);
const
char
*
debug_d3d10_shader_variable_class
(
D3D10_SHADER_VARIABLE_CLASS
c
);
const
char
*
debug_d3d10_shader_variable_type
(
D3D10_SHADER_VARIABLE_TYPE
t
);
void
*
d3d10_rb_alloc
(
size_t
size
);
void
*
d3d10_rb_realloc
(
void
*
ptr
,
size_t
size
);
...
...
dlls/d3d10/effect.c
View file @
ecc6a951
...
...
@@ -486,7 +486,7 @@ static HRESULT parse_fx10_type(struct d3d10_effect_type *t, const char *ptr, con
TRACE
(
"Type description: %#x.
\n
"
,
tmp
);
TRACE
(
"
\t
columns: %u.
\n
"
,
t
->
column_count
);
TRACE
(
"
\t
rows: %u.
\n
"
,
t
->
row_count
);
TRACE
(
"
\t
basetype: %
#x.
\n
"
,
t
->
basetype
);
TRACE
(
"
\t
basetype: %
s.
\n
"
,
debug_d3d10_shader_variable_type
(
t
->
basetype
)
);
TRACE
(
"
\t
class: %s.
\n
"
,
debug_d3d10_shader_variable_class
(
t
->
type_class
));
TRACE
(
"
\t
unknown bits: %#x.
\n
"
,
tmp
&
~
(
D3D10_FX10_TYPE_COLUMN_MASK
|
D3D10_FX10_TYPE_ROW_MASK
|
D3D10_FX10_TYPE_BASETYPE_MASK
|
D3D10_FX10_TYPE_CLASS_MASK
));
...
...
dlls/d3d10/utils.c
View file @
ecc6a951
...
...
@@ -56,6 +56,45 @@ const char *debug_d3d10_shader_variable_class(D3D10_SHADER_VARIABLE_CLASS c)
}
}
const
char
*
debug_d3d10_shader_variable_type
(
D3D10_SHADER_VARIABLE_TYPE
t
)
{
switch
(
t
)
{
WINE_D3D10_TO_STR
(
D3D10_SVT_VOID
);
WINE_D3D10_TO_STR
(
D3D10_SVT_BOOL
);
WINE_D3D10_TO_STR
(
D3D10_SVT_INT
);
WINE_D3D10_TO_STR
(
D3D10_SVT_FLOAT
);
WINE_D3D10_TO_STR
(
D3D10_SVT_STRING
);
WINE_D3D10_TO_STR
(
D3D10_SVT_TEXTURE
);
WINE_D3D10_TO_STR
(
D3D10_SVT_TEXTURE1D
);
WINE_D3D10_TO_STR
(
D3D10_SVT_TEXTURE2D
);
WINE_D3D10_TO_STR
(
D3D10_SVT_TEXTURE3D
);
WINE_D3D10_TO_STR
(
D3D10_SVT_TEXTURECUBE
);
WINE_D3D10_TO_STR
(
D3D10_SVT_SAMPLER
);
WINE_D3D10_TO_STR
(
D3D10_SVT_PIXELSHADER
);
WINE_D3D10_TO_STR
(
D3D10_SVT_VERTEXSHADER
);
WINE_D3D10_TO_STR
(
D3D10_SVT_UINT
);
WINE_D3D10_TO_STR
(
D3D10_SVT_UINT8
);
WINE_D3D10_TO_STR
(
D3D10_SVT_GEOMETRYSHADER
);
WINE_D3D10_TO_STR
(
D3D10_SVT_RASTERIZER
);
WINE_D3D10_TO_STR
(
D3D10_SVT_DEPTHSTENCIL
);
WINE_D3D10_TO_STR
(
D3D10_SVT_BLEND
);
WINE_D3D10_TO_STR
(
D3D10_SVT_BUFFER
);
WINE_D3D10_TO_STR
(
D3D10_SVT_CBUFFER
);
WINE_D3D10_TO_STR
(
D3D10_SVT_TBUFFER
);
WINE_D3D10_TO_STR
(
D3D10_SVT_TEXTURE1DARRAY
);
WINE_D3D10_TO_STR
(
D3D10_SVT_TEXTURE2DARRAY
);
WINE_D3D10_TO_STR
(
D3D10_SVT_RENDERTARGETVIEW
);
WINE_D3D10_TO_STR
(
D3D10_SVT_DEPTHSTENCILVIEW
);
WINE_D3D10_TO_STR
(
D3D10_SVT_TEXTURE2DMS
);
WINE_D3D10_TO_STR
(
D3D10_SVT_TEXTURE2DMSARRAY
);
WINE_D3D10_TO_STR
(
D3D10_SVT_TEXTURECUBEARRAY
);
default:
FIXME
(
"Unrecognized D3D10_SHADER_VARIABLE_TYPE %#x.
\n
"
,
t
);
return
"unrecognized"
;
}
}
#undef WINE_D3D10_TO_STR
void
*
d3d10_rb_alloc
(
size_t
size
)
...
...
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