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
7832577a
Commit
7832577a
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 type.
parent
525dee07
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
1 deletion
+59
-1
d3dcompiler_private.h
dlls/d3dcompiler_43/d3dcompiler_private.h
+1
-0
reflection.c
dlls/d3dcompiler_43/reflection.c
+2
-1
utils.c
dlls/d3dcompiler_43/utils.c
+56
-0
No files found.
dlls/d3dcompiler_43/d3dcompiler_private.h
View file @
7832577a
...
...
@@ -42,6 +42,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
;
const
char
*
debug_d3dcompiler_shader_variable_type
(
D3D_SHADER_VARIABLE_TYPE
t
)
DECLSPEC_HIDDEN
;
/* ID3DBlob */
struct
d3dcompiler_blob
...
...
dlls/d3dcompiler_43/reflection.c
View file @
7832577a
...
...
@@ -1212,7 +1212,8 @@ static HRESULT d3dcompiler_parse_type(struct d3dcompiler_shader_reflection_type
read_dword
(
&
ptr
,
&
temp
);
desc
->
Class
=
temp
&
0xffff
;
desc
->
Type
=
temp
>>
16
;
TRACE
(
"Class %s, Type %x
\n
"
,
debug_d3dcompiler_shader_variable_class
(
desc
->
Class
),
desc
->
Type
);
TRACE
(
"Class %s, Type %s
\n
"
,
debug_d3dcompiler_shader_variable_class
(
desc
->
Class
),
debug_d3dcompiler_shader_variable_type
(
desc
->
Type
));
read_dword
(
&
ptr
,
&
temp
);
desc
->
Rows
=
temp
&
0xffff
;
...
...
dlls/d3dcompiler_43/utils.c
View file @
7832577a
...
...
@@ -47,6 +47,62 @@ const char *debug_d3dcompiler_shader_variable_class(D3D_SHADER_VARIABLE_CLASS c)
}
}
const
char
*
debug_d3dcompiler_shader_variable_type
(
D3D_SHADER_VARIABLE_TYPE
t
)
{
switch
(
t
)
{
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_VOID
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_BOOL
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_INT
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_FLOAT
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_STRING
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_TEXTURE
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_TEXTURE1D
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_TEXTURE2D
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_TEXTURE3D
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_TEXTURECUBE
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_SAMPLER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_PIXELSHADER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_VERTEXSHADER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_UINT
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_UINT8
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_GEOMETRYSHADER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_RASTERIZER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_DEPTHSTENCIL
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_BLEND
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_BUFFER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_CBUFFER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_TBUFFER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_TEXTURE1DARRAY
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_TEXTURE2DARRAY
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_RENDERTARGETVIEW
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_DEPTHSTENCILVIEW
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_TEXTURE2DMS
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_TEXTURE2DMSARRAY
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_TEXTURECUBEARRAY
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_HULLSHADER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_DOMAINSHADER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_INTERFACE_POINTER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_COMPUTESHADER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_DOUBLE
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_RWTEXTURE1D
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_RWTEXTURE1DARRAY
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_RWTEXTURE2D
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_RWTEXTURE2DARRAY
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_RWTEXTURE3D
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_RWBUFFER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_BYTEADDRESS_BUFFER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_RWBYTEADDRESS_BUFFER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_STRUCTURED_BUFFER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_RWSTRUCTURED_BUFFER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_APPEND_STRUCTURED_BUFFER
);
WINE_D3DCOMPILER_TO_STR
(
D3D_SVT_CONSUME_STRUCTURED_BUFFER
);
default:
FIXME
(
"Unrecognized D3D_SHADER_VARIABLE_TYPE %#x.
\n
"
,
t
);
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